Construct 2 Free

Construct 2 Free

slaughtumn Jul 24, 2016 @ 10:07am
Endless shooter
I want to create an endless shooter thing, and i want obstacles and enemies to spawn randomly and also, how do i loop this so my guy doesn't just get to the end of the layout and stop. As i said, I want it to be endless. Thanks! :mobileoctopus:
< >
Showing 1-15 of 16 comments
Platanito Jul 24, 2016 @ 10:28am 
the character is not moving, you are just jumping. the platform and enemies move by setting a speed to a direction. to do the random spawn u need to know about Random in C2.
Last edited by Platanito; Jul 24, 2016 @ 10:28am
slaughtumn Jul 24, 2016 @ 10:46am 
ok thanks! but how does that make it endless?
Platanito Jul 24, 2016 @ 10:54am 
Add Action > System > Time > Wait

C2 Time Actions are only found in Add Action > System > Time. the others are for Sprite FPS
Platanito Jul 24, 2016 @ 10:57am 
Example:

if Platform1 spawned in (x,y), Then Wait 2 seconds Then Spawn another Platform at a random(x,y).

Also here is a video talking about moving background https://www.youtube.com/watch?v=7wm9BFP2qfk
Last edited by Platanito; Jul 24, 2016 @ 10:58am
Platanito Jul 24, 2016 @ 11:04am 
for enemies can be a random x variable. but for y is different. The enemies has to spawn on top of the comming Platform. So that cant be random. to do this you have to set the enemy y position to, Set y Position > (Platform1.y + 3). the number can be more than 1 depending were is the origin of the enemy, as long it dosent touch the platform when spawn.

Watch some Youtube videos, or Scirra website, they help alot. Thenx
slaughtumn Jul 24, 2016 @ 11:07am 
Ohhh yeeaaah, I could've done that!
But thanks a bunch anyway!:steamhappy:
Platanito Jul 24, 2016 @ 11:08am 
Have Fun.
slaughtumn Jul 24, 2016 @ 11:14am 
come to think of it, do you also know how to add enemies to this kind of project?
Last edited by slaughtumn; Jul 24, 2016 @ 11:15am
Platanito Jul 24, 2016 @ 12:15pm 
wot u mean ?
slaughtumn Jul 24, 2016 @ 12:21pm 
As in randomly spawned enemies and how they work and go towards you and shoot.
Platanito Jul 24, 2016 @ 12:41pm 
set evey tick (Enemy.x -1) put less number for biger speed to LEFT. evey (#seconds) enemy should create a sprite called Bullet1, add bullet behavior to bullet and make it move left just like the enemy but with a higher speed.
slaughtumn Jul 24, 2016 @ 1:28pm 
What do I use every tick with? set position? or Move forward?
Platanito Jul 24, 2016 @ 1:41pm 
Move forward to direction
slaughtumn Jul 24, 2016 @ 1:51pm 
Hmm..... they don't appear when I playtest
slaughtumn Jul 25, 2016 @ 5:49am 
Ok! I figured it out! Thanks for all the advice!
< >
Showing 1-15 of 16 comments
Per page: 1530 50