Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
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!
Develop games in your browser. Powerful, performant & highly capable.
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
edit : nah, I made a mistake