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 / Restricting movement

Author
Message
Teh Stone
14
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 10th Mar 2010 23:54
Well I'm not going to bore you with the details of thegame but basically I need help to form a movement fnction that will if the key is pressed move the characer up a specfed amount, say 30 pxl, which I can do but what I can't do is make it move slowly and if the key is released after 10 pixels it will carry on moving until it has completed a full mvement. The same as the mvement found in most old RPGs and the pokemon games

Thanks in advance and sorry if there is any spelling errors as using my iPod atm
Dia
19
Years of Service
User Offline
Joined: 16th Jan 2005
Location:
Posted: 11th Mar 2010 10:34
not quite sure what you are after, do you mean that you want to be able to press the key and the character moves smoothly left or right for a certain distance?

I had this in mind as a kind of solution (needs a little playing around with tho )


This is not the Sig you are looking for....

Login to post a reply

Server time is: 2024-11-23 19:44:32
Your offset time is: 2024-11-23 19:44:32