How to stop an event if we want at a condition.

Get help using Construct 2

Post » Thu Jun 13, 2013 11:02 am

Hello,

I have been doing the Beginners to construct2 tutorial.
https://www.scirra.com/tutorials/37/beginners-guide-to-construct-2/page-7

on page 7 We have added an event to create monsters every 3 secs :
Condition: System -> Every X seconds -> 3
Action: System -> Create object -> Monster, layer 1, 1400 (for X), random(1024) (for Y)

I want to stop creating the monsters after the player is destroyed.
So how do I stop the above event ?
B
4
Posts: 5
Reputation: 485

Post » Thu Jun 13, 2013 3:10 pm

[QUOTE=ysrikanth2011] Hello,

I have been doing the Beginners to construct2 tutorial.
https://www.scirra.com/tutorials/37/beginners-guide-to-construct-2/page-7

on page 7 We have added an event to create monsters every 3 secs :
Condition: System -> Every X seconds -> 3
Action: System -> Create object -> Monster, layer 1, 1400 (for X), random(1024) (for Y)

I want to stop creating the monsters after the player is destroyed.
So how do I stop the above event ?
[/QUOTE]
@ysrikanth2011
Condition: System -> Every X seconds -> 3
add 2nd condition here (in same condition block) where player.count > 0 - will only run when both conditions true
Action: System -> Create object -> Monster, layer 1, 1400 (for X), random(1024) (for Y)DrGreenThumbCAN2013-06-13 15:15:33
B
42
S
12
G
6
Posts: 136
Reputation: 6,397

Post » Sat Nov 16, 2013 6:46 pm

Please explain in more details
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
40
S
19
G
6
Posts: 367
Reputation: 7,406

Post » Sat Nov 16, 2013 7:32 pm

rightclick the event and add another condition (the one he mentioned)
use system compare 2 values for that condition
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests