0 Favourites

How do I Disable an Event through conditions.

  • Hey guys!

    So I was wondering how to disable a block of events after another event happens. Such as say

    Every Tick === Add 1 to Score;

    If Game Over isOnScreen === replace with Add 0 to score?

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • To answer the question, you can disable a block of events by creating a Group and putting the events in the group, then disabling the group.

    But I think what you want is just to have the condition

    X"Game Over isOnScreen" (i.e. inverted) ===== Add 1 to Score

    If I understand properly. Note there is no point adding 0 to anything. Maybe you want to set the score to 0 when Game Over isOnScreen, in which case just have another event

    Game Over isOnScreen

    System:Trigger once ===== System:Set Score to 0

  • If you look at it another way:

    when conditions are met an event is enabled and thus its actions are performed

    to disable the event all you have to do is make sure the conditions aren't met..

    If you'd like to enable/disable a huge amount of events it would be easier to put them in a group and activate/de-activate this group through an event with certain conditions..

    so when a certain condition is met - set group active

    else - set group de-activated

    (these kind of events only have to be triggered once while true (you don't have to turn the light on every second if it's already on))

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
99 10,137
karshinkoff's avatar
karshinkoff
Unread hot topic
56 4,730
MPPlantOfficial's avatar
MPPlantOfficial
Unread hot topic
0 Favourites
Why is Stencyl doing better?
44 16,854
Potato's avatar
Potato