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 am struggling with spawning, I am so close but missing something. How do you have a single sprite spawn from any angle of the screen like in Asteroids?
Thanks
+ Every 2000 ms ++ random(2) = 1
System: Create Asteroid at random(2)*DisplayWidth, random(DisplayHeight)
++ Else
System: Create Asteroid at random(DisplayWidth), random(2)*DisplayHeight[/code:1f7xfqg9]
Theoretically, this should randomly pick horizontal or vertical edges and randomly create an asteroid on one of those edges.
http://dl.dropbox.com/u/4322334/spawner.cap
This spawns objects outside layout in a ring, pointing to the center of the layout.
Porlo that is exactly what I was looking for
My mistake was I was using: Spite/Creation/ Spawn another Object/ ( Select Sprite Name)
Instead of: System/Create Object From/Object ( Select Sprite Name)
So when you use the Spawn another Object?
Well, i've never needed it...
Develop games in your browser. Powerful, performant & highly capable.
I did something like what Mipey said but more like
System: Create Asteroid at 0, random(DisplayHeight)
System: Create Asteroid at random(DisplayWidth), 0[/code:3tpycea7]