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
Some help pls
I am working on Infinity Runner and I am trying to spawn random obstacle. Lets say I have 3 different Obstacle Object and I want them to spawn randomly but I also want them to have a Fixed GAP between each other so they dont over lap. Is it possible to make it something like this.
If I have a pool with obstacles objects and each obj will have its own ID, then randomly one of 3 objects will be pulled from the pool?
Develop games in your browser. Powerful, performant & highly capable.
make sprite (enemy) with 3 animation frame (obstales)
every (choose(1, 1.5, 3) second) = spawn enemy
every (choose(1, 1.5, 3) second)
if enemy position is out of frame > set animation frame of enemy choose(0, 1, 2)