Paint lines with the cursor

Game Editor comments and discussion.

Paint lines with the cursor

Postby JonGoten » Tue Jan 09, 2007 3:02 pm

I wan´t to paint lines on the screen with the cursor as pencil (imagine painting with Paint).
I wan´t to draw pressing the mouse left button.

I´ve created a canvas actor, but if I paint with Mousekey event, only paints a dot, not a line, and if I paint with ondraw event, it paints anytime.

How can I do this?

Thank you.
User avatar
JonGoten
 
Posts: 15
Joined: Sun Dec 10, 2006 7:50 pm
Score: 0 Give a positive score

Postby Game A Gogo » Tue Jan 09, 2007 10:22 pm

theres a tutorial about this, check in the mouse draw thing, well, just check in help and then check the tutorials.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby JonGoten » Tue Jan 09, 2007 10:31 pm

Got it! All is clear.

Thank you.
User avatar
JonGoten
 
Posts: 15
Joined: Sun Dec 10, 2006 7:50 pm
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron