Page 1 of 1

putpixel on Canvas X by Actor Y

PostPosted: Fri Jun 13, 2008 3:59 pm
by asmodeus
There are some functions where I can say to which Actor it should happen, such as:
Code: Select all
ChangeZDepth("myActor", 0.500000);

But there are also some functions, where I can't. Some of them are the drawing functions:
setpen(), putpixel(), lineto() etc.
Is is possible, that I can set the pen of my Canvas called "MyCanvas" by the view?
I tried this:
Code: Select all
MyCanvas.setpen(255, 0, 0, 0, 1);

but it doesn't work.

Is there any way to do this, except of sending activation events or something like this?

Re: putpixel on Canvas X by Actor Y

PostPosted: Fri Jun 13, 2008 6:10 pm
by DST
i would send a timer its probably the best way. Once you created the timer normally, you can then call it in script with a minimum time of 1 ms. and at 60 fps that's less than 1/2 frame, so its virtually instant.