Object A moves left 200px alongside a relative start point motion path when button 'go left' is clicked. After several clicks object A moves outside the window.
Further 'go left' clicks would make object A move further left albeit 'invisibly'.
How to limit that? Ideally, when the object A disappears off the screen further 'go left' clicks don't move it left.
Set a variable. Create an extra trigger for the 'go left' button to increment the variable when clicked. Change the Move Object A on motion path trigger to have a condition: move on motion path if variable < X.
2 Replies
Set a variable. Create an extra trigger for the 'go left' button to increment the variable when clicked. Change the Move Object A on motion path trigger to have a condition: move on motion path if variable < X.
Cool. Done. Thanks. It's working.