Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
how do I make a sprite go back and forth? I want it to go to the rock and back to the base. Is this possible?
Develop games in your browser. Powerful, performant & highly capable.
There are a few ways to do this. You can use the sine behavior for simple back and forth motions.
Or you can try tween x/y from base to rock. On finished, trigger another tween that goes the other way and repeat.
Same idea. Use the pathfinding "On Arrived" trigger to start the next leg/return trip. You can use an instance variable to keep track of which direction you are going, or rather where you need to go next.