Hi there,
This is my first in-game question but i'm getting crazy and didn't find any solution.
I'm making a puzzle game where there are some cubes with different numbers inside (from 1 to 10). There is also a cursor that you can move over the cubes, and pressing a key you can change the number inside (one number up or down).
I have an object for the cube with ten frames inside (one for each number from 1 to 10). I created two events to try:
CONDITIONS=
1) Keyboard > On "+" pressed
2) "Cursor" overlapping "Cube"
3) "Cube" animation frame = 0 (wich is number 1)
ACTION=
1) "Cube" Set animation frame to 1 (wich is number 2)
------------------------------------------------------
CONDITIONS=
1) Keyboard > On "+" pressed
2) "Cursor" overlapping "Cube"
3) "Cube" animation frame = 1 (wich is number 2)
ACTION=
1) "Cube" Set animation frame to 2 (wich is number 3)
------------------------------------------------------
Well, I don't understand why when I run the game and press the "+" key over the cube with number 1, it turns to number 3 instead of 2. In fact, if I keep making the sequence of events for all numbers until 10, if I press the "+" key, it turns directly to 10. Why??
Of course, the animation speed of the object is set to 0.
I hope you can help me. I've searched in the tutorials but didn't find any solution for this.
Thanks in advance.