Going to next Scene

TouchTiltGamesTouchTiltGames Member Posts: 1,162
edited November -1 in Working with GS (Mac)
I'm starting to setup the 40'ish scenes for my game which is almost done..except I've run into a barrier: I've got my game setup so that when the enemies are gone, it goes to the next scene. It works for going from Scene 1-2 but not onward hmph. Anyone ever have this prob?

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Not had this problem.

    What exactly is happening? Do you have a variable that counts how many enemies have been killed/are left that triggers the move to next scene?

    If so, are you sure the actor with the appropriate rules is in every scene?

    Cheers,

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Well I have 3 enemies per scene and after they explode is when I want it to go to the next scene. I've declared a noEnemy = 3 interger and on the enemy actor a change attribute: game.noenemy to game.noenemy -1

    So on the exploded bit (the head):

    if
    game.noenemy = 0
    game.allmotionhasstopped = 1

    then next scene...

    Seems to work for going from 1-2 like i said but not from 2-3 lol.
  • quantumsheepquantumsheep Member Posts: 8,188
    That's interesting actually, because I have a problem where an attribute on an actor doesn't work properly after changing scene, for no discernible reason.

    A bug maybe??

    QS

    Edit - have you tried removing the rules from the head (noenemy=0) and putting it in a separate actor in the scene?

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Sometimes it's disheartening as I know I'm doing something right...then I'll restart GS and it'll work hehe.

    Ok so there's 3 enemies. I've got a noenemy interger set to 3. I've got a Change attribute on the enemy itself: game.noenemy to game.noenemy -1

    Next Level Rule on the enemy:
    if Game.noenemy = 0
    then: change scene

    That's it...not sure what I'm missing, this stage in the 'game' so to speak is new to me. :D
  • quantumsheepquantumsheep Member Posts: 8,188
    Are you resetting game.noenemy to 3 when you move to the next scene?

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Hmmm no! I had this logic in my head (the resetting) as that made sense, but wasn't sure how to go about it. I tried 'reset scene' but that didn't work.

    How would I reset the game.noenemy to 3? I guess having it in the attributes list isn't enough...
  • quantumsheepquantumsheep Member Posts: 8,188
    All you do is put an invisible actor into each scene with the rule:

    Change attribute game.noenemy to 3

    That's it! :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Haha! I even had an invisible actor in there earlier today with a few of these attributes..i was so close...thanks a ton I'll try that lol.

    Can't wait to show you guys my first title. :D
  • quantumsheepquantumsheep Member Posts: 8,188
    Does it involve killing 3 enemies at all?

    ;)

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Haha on some levels yes! I want to mix'er up on each of course.

    Ok....phew..that worked! Thanks a ton.

    Youtube vids and/or screenshots to come in a week :) I found since starting GS 2 months ago that I have 5-6 projects on the go at the same time but I think I'm going to finish this one which involves rodents ruling the world over humans by means of bombs and physics :p
Sign In or Register to comment.