putpixel on Canvas X by Actor Y

Game Editor comments and discussion.

putpixel on Canvas X by Actor Y

Postby asmodeus » Fri Jun 13, 2008 3:59 pm

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?
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: putpixel on Canvas X by Actor Y

Postby DST » Fri Jun 13, 2008 6:10 pm

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.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron