I'm writing a script for scar that will need to reference a set of values for output...
until now i've been doing that with two dimensional arrays... which have worked... but for small stuff...
for this one i have 1200 longint static values that i need to reference... and i don't think it...
wow...
ok i'm re-writing my script entirely...
three lines that completely do what i want and make me want to /wrist for the wasted time making my own line drawing functions...
getclientcanvas.Pen.Color := clRed;
getclientcanvas.MoveTo(331, 275);
getclientcanvas.LineTo(703, 823)
that...
i've found another slight workaround...
where i had been drawing with setpixel then pasting the bitmap ontop...
i've now just made a pixel sized bitmap and pasted it all over the game screen... lol...
it works... better than the other options...
but it's still not what i'm looking for...
ok... so i have the script working... it shows the lines properly
HOWEVER... it blinks... a LOT...
i know the underlying cause... it's the fact that i'm needing to overlay a BITMAP over the game screen
bitmaps don't have transparencies....
the settransparentcolor won't make the overall...
it's telling you that it doesn't know what CreateTPAFromBMP means...
so you're telling it to use something it doesn't know what is...
solution is to define whatever it is...
ok... i've got MOST of it working... but when it comes to drawing the line from point a to cursor, i'm hitting a bit of a wall...
i am able to make it put up a picture and resize it so that it KIND of works... but it doesn't really make a solid line after the pic has been deformed enough...
so...
so i found this thread http://freddy1990.com/forums/index.php?topic=2659.0 on how to make your own game with scar....
that goes into a bit about drawing and the like... but it seems purely focused around the debug image window...
how would you make it display on top of the targeted game...
what functions do the drawing?...
i searched a number of things in the F1 list of functions and nothing really seemed to match....
i can figure out how to use them and bend them to my will... i just need to know what they are first :P....
edit: anyone have like an example script i can look at...
is it possible to have scar draw a fake layer over a game window....
can you make it draw a line from a designated point to (or even through) another point.... overlaid on top of the window?...
an example for the use of this would be for a pool game that doesn't draw the path built in...
Ok... so I had a script that was working fine... for what it did...
it would compile in under 200 ms and run fast enough that i had to add in delays to slow it down...
I needed more functionality out of it however and roughly doubled the length of the script... it's just shy of 2200 lines...