[r97] problem with "or statement"?

  • Hi there

    I think there is a but with the or statement (or maybe, I don?t understand this method correctly, if it?s this, sorry fot this post).

    I have a simple condition with an or statement. I have three ways of testing it:

    1. Is not workin correctly this way. If both are active, the resulting event is only fired with one of them. <img src="http://dl.dropbox.com/u/7026907/or00.gif" border="0">
    2. With only one statement active, it works correctly (but, logically, only againts that condition). <img src="http://dl.dropbox.com/u/7026907/or01.gif" border="0">
    3. Same as the previous, but inverted. Everything ok here too. <img src="http://dl.dropbox.com/u/7026907/or02.gif" border="0">

    So, the problem is when I activate the or statement itself I supose.

    Here is a simple capx to check it: testing capx

    Thanks for all your attention, and congrats for that editor improvements, they are very useful :D.

  • Thanks for the report. This turns out to be an extremely complicated part of the Construct 2 engine! However, I think I got it working for the next build. Hopefully it will be OK then.

  • Yeah, don�t worry Ashley, and once more, thanks for all your (awesome) work. I think it has to be really complicated to have all those features working together.

    I only wanted to ensure if it was a new bug, or simply, I�m was getting little bit stupid %).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This should be working in r98 now, can you confirm?

  • YES!

    It?s working on my test capx. Thx!!

    I will test it in my main project capx tomorrowa nd post if it works here (I gotta wait cuz I?m waiting for Paypal to confirm my account and buy the personal license, I?ve reached 100 events %)).

  • :(.

    sh*t, I think it�s still a little bit buggy, not sure.

    Allthough now it works in a quite simple conditions, I think it doesn�t work at all with more complex conditions.

    I will show you my case with three images:

    In the first one, I show you the 4 boxes that would have to be affected by the condition.

    <img src="http://dl.dropbox.com/u/7026907/00.jpg" border="0" />

    In the second one, I�ve marked the two conditions that I think have to affect the marked two boxes.

    <img src="http://dl.dropbox.com/u/7026907/01.jpg" border="0" />

    And, in the last one, the result of deactivating the first "or" condition and leaving active the other two, and showing that it works like it has to be.

    <img src="http://dl.dropbox.com/u/7026907/02.jpg" border="0" />

    Want I want is to set the opacity to 50% to all the boxes (of that type) that surrounds the player at a distance of one player/box. Not sure if I doing it in the good way.

    Thanks for all your help.

  • We cannot help debug large projects because it's far too time consuming and often is just caused by a mistake in the events rather than a real Construct 2 bug. If you think there's a problem can you try to reproduce it in a minimal new project and post a new thread to the Bugs forum?

  • Ok, no prob!

    I will try to reproduce it in a small testbox, and if there is an error, I will post it!


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