Changescene problem

terabitterabit Member Posts: 9
edited June 2012 in Working with GS (Mac)
Hey all,

Have another interesting problem

At the beginning of each scene I have a rule that sets the attribute "activescene"

Now at the end of each level, I pause, and overlay a scene with a rule that once tapped loads the next level.

ie :

if activescene = 1.1

Changescene to 1.2

The problem is for some reason, 1.3 doesn't follow this rule, and I've checked and double checked that my logic is correct, there are no conflicting rules and I used a "display text" function to prove to myself that it was indeed saving the proper "activelevel"

Sure as sh*t, I see the 1.3 in the "display text" but when I tap to change level, it just resets to 1.3 :(
This is driving me crazy, any reason a rule would just ignore what it's supposed to do ?
my logic seems to work for all levels except this one :(

I've included a screenshot of my rules, I've checked and double checked and not sure WTF is going on :(

http://terabit.ca/images/rule.png


Answers

  • MotherHooseMotherHoose Member Posts: 2,456
    what have you placed in each scene that changes the activeScene name?

    the computer knows what scene the game is in
    … but does NOT change any of the attributes that you have created
    … unless you tell it to do so

    on an unlocked actor in each scene:
    changeAttribute: game.activeScene to: Current scene.Name


    image MH
  • terabitterabit Member Posts: 9
    Yeah, have done that for sure in each scene :P
    this bug is very strange.

    At a total loss here :P
Sign In or Register to comment.