end a code run

0 favourites
  • 4 posts
From the Asset Store
Full game Construct 2 and Construct 3 to post on Google Play
  • Hi,

    first of all sorry for the not really clear title but i hope you will get what i mean.

    i'm currently doing the menu for my game and wanted to ask you something about the code:


    I know that this can't work because right after it sets the sprite to invisible it gets "detected by the next condition" and set to visible again because the key was released before.

    But what i want is that with every press of the button the sprite gets visible if its invisible and if its already visible it gets invisible.

    so I wanted to ask if there is any action that "says" start reading the code from above again without looking any further in the code, so that i can place this action right after the set visible/invisible action.

    I hope i could point out what i meant<img src="smileys/smiley5.gif" border="0" align="middle" />.

    greets cannikon

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Use 'else' condition on second condition, that should work.

  • The best way of you want some type of "toggle" on/off behavior would be to use a variable. Then have it check for the variable changing. That may give you more predictable control.

  • ok thank you both for your great and especially super fast answers ^^

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