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.

2D All the way! / walk speed

Author
Message
LT lash
21
Years of Service
User Offline
Joined: 1st Mar 2004
Location: US
Posted: 4th Apr 2004 13:20
how do you make a character in a 2d rpg move at a certain speed by certain increments like in the old final fantasy games?

for example, when you press up, the character moves up a certain speed until he reaches a certain point
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 4th Apr 2004 16:59
It's to do with how many pixels a person moves in one step.

X + 1 is slower than X + 2, but you can use floating point to accelerate even more slowly.

X# = X# + 0.5 which will be smoother acceleration.

Then you just use the final X# value in your sprite position.

DBPro does have a command for this, but I can't remember what it is called, and I don't have DBPro.

Pincho.

Login to post a reply

Server time is: 2025-05-15 03:17:47
Your offset time is: 2025-05-15 03:17:47