I’m making a c++ rpg.
here is my code:
http://pastebin.com/cyR5bzKR
And it let’s me go to -1 and then i can’t go anywhere.
I can also go to 4 and then it i can’t go anywhere.
Any help?
I don’t want this to be over complicated.
P.S. I am using Code::Blocks I don’t think that’s the problem.
You want to take the next action into account when deciding whether the player should be able to move or not.
Something like this ought to work…