Hello guys,
I know the title is pretty long but i hope you can help me.
I have a player and they can move 1 step by pressing an arrowkey.
Now i want them to reach an object and collecting it BUT with a certain amount of given steps.
Lets say you start in the bottom left corner and the other object is somewhere in the upper right corner.
Now you have to reach that object with exactly 15 steps e.g.
How can i make such a counter?
Thank you on advance!!!
