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

0 favourites
  • 4 posts
From the Asset Store
Very simple code without excess options (15 events for server and 11 events for client)
  • Hello,

    I have been doing the Beginners to construct2 tutorial.

    construct.net/en

    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 ?

  • 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 ?

    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)

  • Please explain in more details

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • rightclick the event and add another condition (the one he mentioned)

    use system compare 2 values for that condition

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)