Bug with "or" block?

0 favourites
  • 5 posts
From the Asset Store
Match same tiles with each other as fast as you can and earn more score during a limited time!
  • I'm running into this very strange bug. I have an or block with two conditions. With both conditions, it doesn't fire. If I disable a condition, then it does fire properly. I don't understand what's going on and I wasn't able to recreate it using similar objects in a minimalized project for a proper bug report.

    Here's the relevant block highlighted: http://i.imgur.com/NfjMJSJ.png

    With the second condition disabled and when (pop < poplimit) is true, it fires properly. The or block is to allow repositioning already counted units. The Heroes instanced is picked via the drag/drop action earlier in the block. With both sections of the or block enabled, I can reposition active units (pop < poplimit is false, but Active is true) but trying to add new units fails (poplimit < poplimit is true, but Active is false). Yet, despite the highlighted block not firing, neither does the over pop limit block and the unit ends up staying where it was dropped instead of either snapping to the grid (as expected) or being moved to the unit list (the fallback). I think there's a picking issue going on.

  • I've noticed it as well, looks like it happens when using 2 differenct conditions, 1 with an ihnstance, and the other global, but i may be wrong. I recommend making a proper bug report so Ashley could look into it better.

  • Here was my attempt to recreate it: http://i.imgur.com/q3GnHgO.png

    So long as either condition of the or block was true, the text would change. If I could recreate this bug, I would submit an official report.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Mylon try to have a condition of the text rather than on a sprite to see if that makes it happen, as in your first exemple, one of the conditions and the actions are acting on the same type of object (heroes)

  • Looks like I got it. In my example, "Is Variable 1 < 1" is true yet the block doesn't fire.

    https://www.dropbox.com/s/gg3j2vxm6lzvv ... .capx?dl=0

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