1
Ask a Question / Re: Move back and forth and randomly stop
« on: October 22, 2012, 01:21:35 pm »
Here is something you can work off of. It seems to work just fine but...
The intended behavior is to start moving at movement speed, move then stop after xx seconds, and if it hits a tile it will also reverse directions.
Perhaps it's getting stuck while hitting a tile at stop speed ( 0 ) and 0 minus 0 is still 0 so therefore the motion stops. Hmm.
I'll work on it too here some. For a note the Created Event only runs once so the looping motion is in the custom Events setup (Start Motion)
The intended behavior is to start moving at movement speed, move then stop after xx seconds, and if it hits a tile it will also reverse directions.
Perhaps it's getting stuck while hitting a tile at stop speed ( 0 ) and 0 minus 0 is still 0 so therefore the motion stops. Hmm.
I'll work on it too here some. For a note the Created Event only runs once so the looping motion is in the custom Events setup (Start Motion)