So I have been playing around with the preliminary work on an old school RPG that I used to play when I was a kid. And, I have been reading up on various ways of going about creating such a game (or at least starting to).
Anyway, I have used some examples found on the net to make a sprite that moves in the specific fashion that I want (more of a per-tile movement, a la Final Fantasy etc).
However, one of the things I want to do, is have the ability in specific layouts to have random battles. I was thinking that the best way to go about implementing such random battles would be to have a counter (instance variable of the sprite moving around) that increases with every successful step taken. However, I have been unable to figure out the best way to do this (or even a reliably functioning way to do this).
I was thinking of using an invisible sprite, that when overlapped, would generate an increase in the variable, however it will scale up as long as I am overlapping - I can stop moving and it keeps increasing.
Is there a way I can check to see if I have successfully changed position (perhaps by comparing the self.x and self.y position)?
Or, there may be another way entirely.
Link to the project file: http://www.spite.ca/construct2/game.capx