Forum Discussion
Object disappearing when swapping from one motion path to another
Hi Reggie. The problem is being caused by the length of your falling motion, as when you press space to jump the object moves to the end point of the falling motion and then jumps from there. Because you've made the falling motion long enough to fall from the top to the bottom of the screen, when it falls from lower than that all subsequent motions all happen below the visible screen.
What you can do is set the motion to be very short and then have it repeat, and another variable that changes when the object intersects with your rectangle at the bottom of the screen, so what you end up with is a trigger that says 'move object along falling when falling stops, unless 'object intersecting with bottom of screen trigger' is true. That way it will continue to fall until it reaches the bottom rectangle, then stop. You can use a similar trigger for the top of the screen, disabling the jump if the object is intersecting with the top of the screen so you can't jump out of screen.
This is super hard to explain, so I've attached an edited story file so you can see how the triggers and variables might work.