Change Scene via Timer

thdgamesthdgames Member Posts: 9
edited November -1 in Working with GS (Mac)
Hi,
I'm a novice using GameSalad. I'm modifying the 'Cannon game' to learn how GameSalad works. So far I have removed the bricks and I have replaced them with 1 static character. I have added a noise and particle effects for when the cannonball strikes the character. This all works so far.

I would like the scene to change for a timed period of 4 seconds after the character gets hit and the particles and noise deploy. I've tried various different things but either the scene doesn't change at all OR the scene changes straightaway - the instant the cannonball collides with the character.

Can anyone advise a process that will do what I want in this order:

Cannonball strikes character >> noise + partical effects >> New Static Scene timed for 4 seconds >> Return to Initial Scene

thanks for any help.

T

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Simplest thing would be to have a timer behaviour that says 'After 4 seconds' - then insert a change scene behaviour into it.

    This would be placed on the character that will be hit.

    You'd have a rule:

    If character collides with Cannonball

    Play noise

    Produce particles

    Timer - after 4 seconds go to new static scene

    Go to initial scene.

    At least that's what I've got from what you've written. I'm feeling unbearably wonderful though, so excuse any misunderstanding...

    QS :)

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

  • thdgamesthdgames Member Posts: 9
    Thanks QuantumSheep,
    I'll try what you suggested.

    Cheers,
    T
  • quantumsheepquantumsheep Member Posts: 8,188
    Good luck, fella :)

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

  • thdgamesthdgames Member Posts: 9
    Still can't get it to work, basically it's changing to the scene instantly by-passing the particles and sound. I probably didn't explain it correctly before. Here's what I want to achieve:

    1 : cannonball hits character

    2 : character makes sound and particle effects display

    3 : after a 1 second delay (long enough to see the particles) (timer ?)

    4 : change scene to scene 2

    5 : stay in scene 2 for 4 seconds (timer)

    6 : back to initial scene

    This seems like it should be straightforward to accomplish, perhaps it's the cannonball's rules that are conflicting with my characters rules? hmmm... better start from scratch!

    T
  • quantumsheepquantumsheep Member Posts: 8,188
    Yep - use the timer - after 1 second, go to second scene

    In the second scene, have a rule on an actor that says:

    Timer: After 4 seconds
    Change scene to previous scene.

    That should work...

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

Sign In or Register to comment.