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
I am creating enemies on a random position on the layout, but sometimes, they create near my player or right over it. How do I prevent this? I want to spawn them on the layout but a few pixels away from my player sprite.
Thanks in advance!!!
Develop games in your browser. Powerful, performant & highly capable.
add another condition? Compare distance(x1, y1, x2, y2) ? system -> compare two values: distance(x1, y1, x2, y2) >400 etc...
You could generate your numbers using the following logic:
You must use only one of the condition at a time otherwise you will have something like this: