When the player runs or falls off the platform, they shouldn't move left or right, the X position should stay fixed so that doesn't happen.
In my game, when you fall off, my player moves to the left of the screen, which it shouldn't do. It should stay in the same X position.
I tried to fix this by creating an event that sets my player's X manually when falling, and although this worked, my player starts going through platforms which is the glitch I'm refering to in the 1st capx.
I don't even understand..... hmmm if the player is not supposed to go to the left upon falling, you mean the platform should stop moving? You have to choose either a) or b):
a) player move left upon falling, platform keep moving
b) player stay at current x, platform stop moving
assuming you choose b), look at my capx, hope it gives you something. Btw, line 12 is wrong, i've corrected it, didn't check everything in detail, line 12 just too obvious.
Line 16 is to do b)
Line 17 is just added to see whether you want things to proceed running if it is not falling.
[attachment=0:151iniov][/attachment:151iniov]
PS: option c) player stay at current x AND platform keep moving AND no glitch >>>>>> IMPOSSIBBBRUUUU!!