Movement in RPG
Posted
by
user1264811
on Game Development
See other posts from Game Development
or by user1264811
Published on 2012-07-08T18:34:00Z
Indexed on
2012/07/08
21:23 UTC
Read the original article
Hit count: 245
I want to make an RPG game in which I move tile by tile. So when I hit up, the tile row that I am on decreases by one for example. Also, it's supposed to be a slow movement so that I can see the change in tile, i.e. I can see my sprite move from tile to tile. Currently, with the code I have, when I hit a direction on my keyboard, I move several blocks within seconds and by the time I release the button I have already gotten a nullPointerException error because I have left the map. How can I slow down the movement?
© Game Development or respective owner