Or Operator

0 favourites
  • 7 posts
  • Please see the attached:

    <img src="http://www.blazemp.com/temp/Shot1.jpg" border="0" />

    As you can see, I have a check here to see if there is a value in webstorage for the high score. Of course, I want this to occur when the program first runs. I want to say if it does not have a value in web storage, to set the text in the text field to "". I can't seem to get it to add the OR in the right place. The only location I can seem to get to show the option for me to add OR is here:

    <img src="http://www.blazemp.com/temp/Shot2.jpg" border="0" />

    I know I am not understanding something simple, but I am having trouble figuring how how to look this up. Can someone clue me in on what I need to do? Thank you. I am new to Construct. Please be kind. :)

  • If you right click the webstorage condition itself only, you can "Invert" it.

    Also, you probably could make this condition as a sub-event of the top level "On start of layout".

    Have a look at this tutorial, if I remember correctly I have some implementation of something you're looking for in it.

  • Thanks! Will have a look. :)

  • The "On start of layout" event is a trigger. It can't be paired with an or operator because it always happens and is the soul trigger for the event.

    Other events that have a green arrow such as "On collision with" can't have the "or" operator either.

  • That's just it. I don't want it paired with that. I want it paired with the check on the webstorage key existing.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ...but I want it to occur at the start of the layout.

  • What's being suggested is something like this, based on your first message.

    <img src="http://blackhornettechnologies.com/Construct2Stuff/HighScoreSample.jpg" border="0" />

    It's not clear where your OR was going.

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