Draw event...

Non-platform specific questions.

Draw event...

Postby linux_man007 » Sun Dec 14, 2003 1:33 am

I noticed a small problem with GE.

I want to have a dot object to move PERFECTLY with the mouse pointer
so I can click on any screen coordinate and have an object move toward the
position my mouse was at when I clicked.

I created the dot so that the mouse button down event would always be able to
be triggered.

The problem:

The dot object trails behind the mouse cursor, not keeping up with it!

I think that the draw event actually occurs after the actor is drawn.

Would adding a Begin Draw event
(an event that occurs BEFORE the actor is drawn) solve the problem?
linux_man007
 
Posts: 59
Joined: Sun Nov 23, 2003 11:35 pm
Location: Rochester, MN USA
Score: 0 Give a positive score

Postby makslane » Sun Dec 14, 2003 2:43 am

Try the Follow Mouse action
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron