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.

Code Snippets / [DBC] sprite movement

Author
Message
Jmahmood
17
Years of Service
User Offline
Joined: 3rd Apr 2007
Location: not sure
Posted: 26th Dec 2007 19:27
This code might come in handy for those who want to make a R.T.S.
This explains how to select an area and move a sprite to that position.




Attachments

Login to view attachments
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 27th Dec 2007 01:29
Curvevalue does the job much better; the interesting thing about curvevalue is no matter how far away you click, the sprite will take the same amount of time to get to the way-point.


Also you set SYNC ON and SYNC RATE inside the loop, don't do that.

Paul08
16
Years of Service
User Offline
Joined: 20th Feb 2008
Location: Oxford, UK
Posted: 20th Feb 2008 22:56
how can you say the piece of code you mentioned does it better when its less realistic?

the piece of code bat out of hell has published above does it nicer imo as the sprite arrives when it should?

Login to post a reply

Server time is: 2024-11-22 13:20:44
Your offset time is: 2024-11-22 13:20:44