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.

DarkBASIC Discussion / Moving Sprite

Author
Message
JNice013
21
Years of Service
User Offline
Joined: 10th Jan 2004
Location:
Posted: 30th Apr 2004 05:45
I have a sprite in position and when the z and x keys are pressed an attack is shown. How do I make the sprite move left and keep moving left when or right when I press a key like adding a number to variable x to move the sprite across the screen or subtratct from it to move backwards. Also right now the attack sprites are in the same position as the starting position I know I would have to change them to match where ever the sprite is standing when it is moved on screen but I can not figure that out either. Can someone please show me how these two things can be done



"The Infamous J Nice"
BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 30th Apr 2004 18:51 Edited at: 30th Apr 2004 18:53
For one push, and the sprite moves without stopping;


So it moves as you hold the button down;




Login to post a reply

Server time is: 2025-05-23 12:10:48
Your offset time is: 2025-05-23 12:10:48