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
Game development stories & opinions
I'm trying to make an event so that an enemy may spawn anywhere on the map except the player's current X any Y position but i'm not sure how to. Can anybody help me? Thanks in advance!
use a function to spawn the enemy, then , after the spawning action, check for the position... if its teh same of the player call the function again.....
the loop will continue until the spawned enemy is not on the same position than the player
Something like this?
System: Random(1) = 1
create object at player.x+100+random(1000)
create object at player.x-(100+random(1000))
and same for y
Develop games in your browser. Powerful, performant & highly capable.
edit : nah, I made a mistake