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]