How to Simulate distance travelled?

Hi Guys and Gals, I'm trying to simulate distance travelled in my game but I can't seem to get it to work.

I'm trying to just simply do,

when any

self.positionX = self.positionX+50

when self.positionY = self.positionY+50

when self.positionX = self.positionX-50

when self.positionY = self.positionY-50

change miles to miles+1

But this doesn't seem to work, I'm not looking for anything super advanced just something simple that works.

Any ideas guys? Thanks in advance :)

Comments

Sign In or Register to comment.