Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / problem with mouse code

Author
Message
instinto criador
17
Years of Service
User Offline
Joined: 19th Dec 2006
Location:
Posted: 17th Mar 2009 04:45
Please, someone could say me how can I to do the sprite to continue following the mouse same that this run too fast? Thank you, sorry for my english:




BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 17th Mar 2009 18:40
It looks like you want to be able to drag the block with the mouse?

In that case, it isn't working because if the user moves the mouse too quickly, it will move off the sprite before the program can detect it.

I'm having a hard time describing it, but this code fixes that. See if you can figure out what I changed:





instinto criador
17
Years of Service
User Offline
Joined: 19th Dec 2006
Location:
Posted: 18th Mar 2009 23:52
Perfect! It's exactly that! Thank you vey much!

Login to post a reply

Server time is: 2024-11-24 11:41:34
Your offset time is: 2024-11-24 11:41:34