0 Favourites

Need Help. Don't know if it's a bug or not.

  • Ok, first of all, i'm not sure if it's a bug or not. I tried to do that in the 101 and in the latest Stable Release, same thing happens.

    I have two Sprites, "One" and "Two". I put then in the same family. And created a Family Instance Variable called "Number"

    • For the Sprite "One", i put the value of the variable 1
    • For the Sprite "Two", i put the value of the variable 2

    Now i go to the Event Sheet and do that:

    <img src="https://dl.dropbox.com/u/5143153/pick/imgs/pic1.jpg" border="0">

    So, i guessed that when i compare Family Variable -> Number = 1 , it would pick all objects in the family. And those objects picked would be remembered in the subevents. So, if you press "W", i thought it would rotate just the object "One", because its Family Variable is set to 1.

    But what happens it's unexpected, at least for me. Both objects rotate. If i press "S", the same thing. If i put like this,It works, though :

    <img src="https://dl.dropbox.com/u/5143153/pick/imgs/pic2.jpg" border="0">

    I think this is redundant. So my question is: Is this planned to work like that or it's a bug?

    .capx in case someone want to check:

    https://dl.dropbox.com/u/5143153/pick/imgs/Bug-103-2.capx

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Hey, this bothered me also but somehow i got used to it. However am also pretty curious why it doesnt work as you described in first example.

    Martin

  • I think this is related to an active bug report in the bugs forum. You might want to post this to the bugs forum to make sure when I fix the other report, this is also fixed.

    The workaround is easy: just rewrite your events without subevents, e.g. "On W pressed, Number = 1" in the same event.

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