how do i spawn top and bottom objects

Get help using Construct 2

Post » Tue Jul 29, 2014 5:56 pm

just wondering if someone could help me on how to spawn top and bottom objects that the player has to slide under or jump over. similar to "LINE RUNNER" they are set to bullet motion at 180 from right to left..
B
6
S
1
Posts: 33
Reputation: 476

Post » Wed Jul 30, 2014 12:00 am

This is one way I have done it. I create 3 spawn boxes (just colored square sprites) off screen to the right. This sample shows you how to have it spawn with a measure of randomness. Note that I create another sprite off screen to the left called "destroy_flames" that destroys the sprites off screen on collision.

Image


Enjoy.
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,283

Post » Wed Jul 30, 2014 4:28 am

AWESOME GREAT HELP "THEDOM"
B
6
S
1
Posts: 33
Reputation: 476

Post » Wed Jul 30, 2014 5:10 am

anyone else have a different way i can do this
B
6
S
1
Posts: 33
Reputation: 476

Post » Wed Jul 30, 2014 5:13 am

SIMILAR TO THIS?
B
6
S
1
Posts: 33
Reputation: 476

Post » Wed Jul 30, 2014 6:21 pm

There are many ways to accomplish this. You could also use

System > Create Object

and define specific X and Y coordinates and/or using random to define a range of Y coordinates randomly instead of using choose as in the above examples.
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,283


Return to How do I....?

Who is online

Users browsing this forum: BackendFreak, farsen, lahbach, newt, TRMG, Yahoo [Bot] and 20 guests