Am I out of total allowable scenes?

sparkersparker Member Posts: 47
edited January 2012 in Working with GS (Mac)
Hi all,

up to a point in my game where I do not seem to be able to move to another scene. No matter what syntax I put in my button - the game wont go to the next scene? If I put other functions in the button (add 1 to the count) I can see the count going up and up with every click, but it still wont change scenes?

I'm going totally crazy with this one....

Sam

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited January 2012
    Hi Sam, seems odd; I shouldn't think there's a "bad" limit to the amount of scenes you can have so something else is going on. For interest, how many scenes have you got in your project?

    Edit: Have you something like:

    Change Attribute: when Count = 1
    Change Scene 1

    Change Attribute: when Count = 2
    Change Scene 2

    etc; ?


    ----------------------------------------------
    http://davidgriffinapps.co.uk/

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • sparkersparker Member Posts: 47
    Funnily enough, I don't have that many scenes! I have 26 in total, but I'm wondering if there is something wrong with "changing" from scene to scene too often? Do I need to "close" them or something?

    I just cant get it to respond... The only thing I can think is that there is a conflict somewhere telling it to go to two different scenes, but its an incredibly basic part of my project that just doesn't seem to function!

    Would be incredibly appreciative of any advice/suggestions as I'm about to start pulling hair!!!

    Sam
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited January 2012
    No worries Sam, I'm sure it'll get sorted without you pulling your hair out!! (Mind you, at least you've got some...!)

    Firstly, 26 scenes is perfectly acceptable so there's no worries about moving from scene to scene, no matter how often.

    Now you say you've an attribute called Count and when Count is a certain number, then go to a certain scene, yes? So what do your Rules look like where you're using this attribute and Change Scene behavior? (I don't mean a screen grab, just written down will do!)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Let's see those change scene rules...
  • sparkersparker Member Posts: 47
    Thanks - appreciate the response.

    OK, will use some basic code-english to explain what I am doing. I have an actor called touch. Inside touch, there is a rule which says when actor receives touch do the following:

    Then I have three rules. One checks two different counts. If those counts are correct, it changes scene and adds a number to the count. (This one works fine.)

    The next rule checks for the same two counts again (one with a higher value than previously) and then has a list of rules inside of it (checks to make sure your rider number was one of the winners - IE, you won one of the races)
    Inside that - it has a scene change. That rule has an "otherwise" which also changes scene.

    Basically, its a drag racing game. If you qualify, this screen shows who is racing who in round one. Then, after round one - it shows who won each of the four races. If your won, you should move onto the next round. If you lost, you should go back to your headquarters. My scene is doing neither....

    I have put some temporary test tags on the scene to ensure all values are what they should be to meet the criteria (which they are). Yet my "touch" actor does nothing....

    Was that able to be followed?? I can give a screen dump if need be?

    Sam
  • sparkersparker Member Posts: 47
    Hi,

    sure - here is a shot of the lower half of the rule (can get the higher section if need be):

    image
  • sparkersparker Member Posts: 47
    And here is the rule further up:
    image
  • sparkersparker Member Posts: 47
    I can confirm it is not the attributes, as I have tested those with my tags and they should be correct.

    Also - if the "winner" tags were not right, it still should change scene yeah? Should change to one scene or the other?

    Sam
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited January 2012
    Hi Sam, in your Rules shown above, try putting both the Change Attributes before the Change Scene; hopefully that'll sort it.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • sparkersparker Member Posts: 47
    Hi Gyroscope,

    thanks for the response. That was initially how I had it, but just changed it to try and get it to do something (I have had a horrid time dealing with the operational logic - or lack of... in GS). But did just try putting that back in case it was still the issue.... No luck.

    Just for a laugh, I made a new actor with the following rule in it only:
    image

    Even this did not work..... Surely this is telling us something? There must be something MAJOR wrong?

    Sam
  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Gyro is probably right, always put logic in the order they need to happen.
  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Ok then check the headquarters scene for any conflicts...?
  • sparkersparker Member Posts: 47
    edited January 2012
    What sort of conflicts would there be? I can try creating a new scene for testing purposes and link it to that (which should have zero conflicts?)

    Sam
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Strange, strange, strange... this has echoes of a few beta back... when you say it didn't work you mean it stayed on the same scene?

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • sparkersparker Member Posts: 47
    **Update**

    created a new scene, changed this new button to point to that. Still didn't work.... I did try running the game again though and trying that button at the stage where my real button (with the logic above) does work (with certain counts etc.) and it did work.

    Is it safe to say that there is something on this form or in the game that is taking over from this scene?

    Sam
  • sparkersparker Member Posts: 47
    Gyroscope - correct, stays on the same scene as if nothing was pressed?

    Sam
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited January 2012
    OK, there's something weird going on if you can't even change a scene with just a touch in your test...

    I guess you've tried quitting the gamefile and opening it up again, trying again...

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • sparkersparker Member Posts: 47
    I have... But will try again.

    Something must be happening for the game to "freeze" at this stage. At least now I know its not an issue with my rules, but something up with the game/scene at this point.

    Really does seem as if I am out of scene changes?!

    Sam
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited January 2012
    oh, before I hit the sack, just thought of something which might or might not help:

    Your game.run attribute might need a cap, so

    Rule: when game.run < 7 (for instance)
    Change attribute game.run to game.run + 1

    just a thought.... now definitely goodnight all!!

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • sparkersparker Member Posts: 47
    hehe I know what your saying!!! At first I thought I had done something silly like that, but with this new button I just created, I don't see how it can be going wrong (especially seeing as it works the first time this scene loads, but not the second - same as the other button....)

    GS Staff - can you suggest anything?

    Sam
  • sparkersparker Member Posts: 47
    Thought I would share some shots of the game in action, here is the screen which shows the race seeding for round one (you can see the test button "exit" which still works at this stage and all of the de-bugging values around the scene):
    image

    Now here is the seeding page after round one has completed, this shows who won round one and their associated opponents for the semi final. This is where neither button responds:
    image

    Help?!?!

    Sam
  • sparkersparker Member Posts: 47
    I've concluded that I must have a loop running somewhere. Will see if I can find it and report back!

    Sam
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    i have 114 scenes in one of my games, so it must be something in the logic
  • sparkersparker Member Posts: 47
    Yeah I didn't think it was the number of scenes as this is surely just scratching the surface.

    I am 94% certain it is a loop somewhere when run = 6 that is stopping it from progressing
  • sparkersparker Member Posts: 47
    Is there any way I can de-bug to see what loops are running?

    Sam
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi Sam, you can set up some temporary actors on screen each with a Display Behavior, each with a different attribute to show. That way you can work out when and how your attributes are changing; could be helpful...

    ----------------------------------------------
    http://davidgriffinapps.co.uk/

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • sparkersparker Member Posts: 47
    Hi Gyroscope,

    I did have a fair number of attributes showing on screen, but eventually found the issue. There was a couple of rules in the background of the scene that were performing tests when "run" = 6. This seemed to have consumed all activity and couldn't be over ruled by clicking on another button.

    All sorted now, I may start re-growing hair again!!!

    Thank you all for your helpful suggestions, another perspective was all I needed to help work out the issue.

    Regards,
    Sam
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Have you tried it without that "otherwise" statement that has a change scene?
  • JakeMorJakeMor Member, PRO Posts: 136
    The file is corrupted lol. Get DBA's Project merger, create a new blank project and merge the two ;)

    -Jake

    link: http://www.deepblueapps.com/Deep_Blue_Ideas_Ltd./GS_Merger.html
Sign In or Register to comment.