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
Free education resources to use in the classroom
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 event for a sprite that randomly changes direction? It uses the 8 directional behavior. I'm trying to pretty much make an AI that goes against the player.
You can use choose("A", "B", "C", "D") which picks one at random and then you relate the choices to direction, possibly an instance variable on the AI that makes them move in one of 4 directions.
Develop games in your browser. Powerful, performant & highly capable.
Is there like an image that you can show me?
This file has one way of doing it.
I have an interval (which here is global, but could be different for each unit) and after that interval the unit chooses one of eight directions.
Hope this helps...
This is perfect, thank you!