[SOLVED] How to random spawn another Object?

Just started using Construct 2? Post your questions here

Post » Fri Sep 19, 2014 9:12 am

Hi guys,

just a newbie on using construct 2 and this tool is the best :)

Currently I am practicing and developing my first game but it seems I'm having a bit problem on programming stuff.

How could I randomly spawn an object to another object?

Your all help is very much appreciated :)

Thank you.
Last edited by jyoiru on Tue Sep 23, 2014 9:56 am, edited 1 time in total.
B
5
S
1
Posts: 8
Reputation: 396

Post » Fri Sep 19, 2014 12:10 pm

Random time or random object?

Random time
System > every x seconds with random(0,10) > spawn object from the spawner object

Random item
1. generate random number floor(random(0,10)) and assign to a local variable
2. After this is done, if random = 0 spawn itemA, if random = 1 spawn itemB etc.
B
32
S
6
G
2
Posts: 317
Reputation: 2,801

Post » Sat Sep 20, 2014 2:08 am

it is random object.

Thanks @IndieWiki. already solved it with your help :)
B
5
S
1
Posts: 8
Reputation: 396


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests