How do I cause specific sprites to spawn at random times?

Get help using Construct 2

Post » Wed Jul 15, 2015 2:15 am

Hello to everyone,

I apologize if this question has been asked many times before, but I searched the forums and I couldn't find exactly what I was looking for. How can I cause a specific sprite (a projectile for example) to spawn at random times?

Thank you in advance.
B
5
Posts: 12
Reputation: 249

Post » Wed Jul 15, 2015 2:35 am

Try this:
Add the "Every X seconds" condition - interval (seconds) = random (x)
B
6
S
1
Posts: 29
Reputation: 465

Post » Wed Jul 15, 2015 3:24 am

Thank you! The result I ended up with isn't quite what I expected but this is definitely super helpful! I think I did something wrong maybe.
B
5
Posts: 12
Reputation: 249

Post » Wed Jul 15, 2015 9:33 am

Well, perhaps you need to be more detailed about what you are exactly trying to achieve.
The answer you got for the way you asked the question is just spot on.

If that is not exactly what you are aiming for, try detail more the mechanic you are trying to achieve.
Analysing/breaking it down will help you in the long run and will help us help you with how to do it.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

Post » Thu Jul 16, 2015 2:23 am

Yes Kyatric the answer was indeed spot on, but I don't quite understand the full power of the Construct 2 engine just yet. Which is why I said "I think I did something wrong", I know that what Seymour said is what I need to do but I don't quite know how to implement exactly what he said is all. Thank you for your input though.
B
5
Posts: 12
Reputation: 249


Return to How do I....?

Who is online

Users browsing this forum: wizdigitech and 13 guests