I'm once again making a platformer, which scrolls when the player reaches the border.
When the player dies, 3-4 seconds go by and the comes a text with "restart Y/N". Pressing N will close the app and Y will restart the level (I've set it to "jump to frame 1" because I don't want the music to start from beginning).
The problem is.... If you die AFTER you have scrolled the level and press Y to restart, the next time you scroll all the images gets totally misplaced and I can't see why. Any suggestions?
No global values at all, yet.
Player is getting closer than 0 pixels from windows edge = Center display at Player.
When player dies, a text shows and ask if u wanna restart level Y or quit N.
Pressing Y = Jump to frame number 1.
I've noticed that if i change "Jump to frame number 1" to "Restart current frame" will have the same bug + restart the music (which I don't want). Only way it'll work is if I change it to "Restart Application", which means I won't be able to make more than one level. And thats, eh. yeah. Argh, I want this to work!
Do like this; First try to get far enough to make screen scroll (cmon, its not hard), secondly you die. DIE. Wait for the message and press Y. Then once again make the screen scroll, you will now find the frustrating bug.
EDIT2: Eh, I forgot to mention.. Make a quick double tap on the jump, to get higher.
Okay, this should probably work, as I had this bug happen lots of times in TGF.
First, create a new empty frame.
Then, in your level; when the player dies, set Global Value 1(or one that you don't use) to the number of the current level/frame; then make it jump to the frame we just created.
In that frames events, put: at the start of level- jump to frame 'Global Value 1'.
(you only need the global value if you are going to make more than one level P: )