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
Our educational partners
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
I'm making little project where I want an object to be randomly spawned outside layout but near the border, with angle that will make that object enter the layout. And so I wander if you could help me?
Develop games in your browser. Powerful, performant & highly capable.
Hey there, you could do that by using
Every X Seconds: Create Object at the position X: LayoutWidth and Y:random(0,LayotHeight);
You could add a bullet behavior to your objects to make them move or use the Move At Angle event. ;]
Hey, thanks for your replay, although im not sure if this will work randomly around the whole layout. I need something that would spawn an object anywhere around the layout. Will experiment with what you said thought.
There might be an easier way, but here's one way to do it:
It's basically what sheepy said, but if you want to spawn from all directions you first need to pick an edge to spawn from.
Hey, thanks for your help. I took sheepy advice and expanded it and it works perfectly :)
Thanks! This was exactly what I was looking for!
Can you put again the capx ?