GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Help - Changing Scene when different actors are destroyed

vanessacfcostavanessacfcosta Posts: 2Member
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 Posts: 1,159Member

    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 Posts: 11,796Member, Sous Chef, PRO, Senior Sous-Chef

    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 Posts: 2Member

    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 Posts: 11,796Member, Sous Chef, PRO, Senior Sous-Chef

    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.