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 / sprite speeds

Author
Message
Gatorules
15
Years of Service
User Offline
Joined: 17th Dec 2008
Location:
Posted: 24th Dec 2008 03:44
This will sound like a stupid question but is there any way to test if a sprite is moving by saying something like dbspritespeed>0 or just anything that will see if it is moving?
Pillarofire
20
Years of Service
User Offline
Joined: 31st Dec 2003
Location: Good Question, <looks around.>
Posted: 24th Dec 2008 09:33
Since you are in complete control of how and when it moves, then yes you just test its velocity, if indeed you told it to move by said velocity.

for example:

DsarchyUK
16
Years of Service
User Offline
Joined: 21st Nov 2008
Location: UK
Posted: 25th Dec 2008 20:29
If you want Real time data on your Sprite movements, for example for debugging, you can always refer to the variable and use it in a print/text statement.

For example if you had a sprite using XPOS and YPOS.



you could then use something like



Working Example:


<ahref="http://dsarchy.deviantart.com/">My deviant page </a>

Login to post a reply

Server time is: 2024-11-24 16:46:06
Your offset time is: 2024-11-24 16:46:06