need help updating my distance game
Hello. I worked on a distance game over a year ago and just updated Gamesalad Creator so I could upload it to the arcade to show my friends. However, it appears the way to track how far an object goes has been changed.
The way I did it before was that I used a Constrain Attribute behavior with game.Distance to prec(self.position.x, y)/12 and displayed the current amount with a Display Text behavior.
If anyone knows why it doesn't work now and how to fix it, I'd greatly appreciate it.
Best Answer
-
Socks London, UK.Posts: 12,822
@mrblah said:
nevermind. I found out that it is the abs function that can currently record distance. eh.You can use magnitude to record the distance between two objects, the abs (absolute) function just normalises everything to a positive value, it doesn't record distance.
Answers
What is the actual expression you are using ?
What does 'it doesn't work' means in this context ?
I mean the text that shows how far the object traveled starts at zero and stays at zero, despite the fact that the number use to change during gameplay before a year ago.
nevermind. I found out that it is the abs function that can currently record distance. eh.