Help - Changing Scene when different actors are destroyed

vanessacfcostavanessacfcosta Member Posts: 2
edited March 2015 in Working with GS (PC)

Greetings!
I'm creating a drag and drop game with 3 objects to be dragged to different positions, and only when all the three objects are correctly dropped and therefore destroyed, the scene is changed. I don't know how to make the change scene condition.

The three objects are different actors (as two of them go to one same position and the last one goes to another position).
I also have a "scoring" system that displays images (colored dots that are other actors) when the objects are destroyed.

I dont know if I'm explaining correctly
How do I make the game to change scene?

Thanks in advance

Comments

  • DuesDues Member Posts: 1,159

    If it's just the change scene your are struggeling with. Do like this.

    Create a global integer attribute, let's call it: levelcleared.
    Create a rule that says: when attribute game.levelcleared = 1
    Change scene to: next scene

    I really recommend going through this thread:
    http://forums.gamesalad.com/discussion/79005/new-gs-user-hope-this-makes-you-feel-welcome#latest

    Lots of great links and stuff.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Create an integer game attribute called game.destroyCount. In the actors that are destroyed, change attribute game.destroyCount to game.destroyCount+1 right before the Destroy Actor behavior.

    In a separate actor, have a rule that says When game.destroyCount ≥ 3 ... Change Scene.

    Are you using a Mac or PC? You posted in Help Wanted which is usually for paid help requests but I can move it to the appropriate "Working with GS" subforum.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • vanessacfcostavanessacfcosta Member Posts: 2

    Thanks Dues and tatiang! I'll try out now your solutions!

    tatiang, I'm new to all this, sorry I posted in the wrong place :sweat:
    I'm using PC.
    Thanks for helping! Now I know where to post correctly my questions :)

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    It's quite alright. Also, when you want to notify another member, use the '@' symbol in front of their username like this: @vanessacfcosta.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.