function help *selecting a character*

I have two characters at the beginning of the game you can choose from.
I have a different scene for each character you pick, example; if you click the turtle you go to a snow seen and if you click the rabbit you go to a farm scene. I have both scenes set out but when I click the turtle at the menu screen he goes to the snow scene which is good but when I click the rabbit he goes to the snow scene instead of the farm.

Does anyone know how I can fix this? I can provide more detail and pictures to show what I am talking about.

Answers

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Does anyone know how I can fix this? I can provide more detail and pictures to show what I am talking about.
    This. Any time you post on the forums, please be sure to provide the exact rules you are using and/or a screenshot (see my signature for instructions).

    There are often five different ways to achieve something in GameSalad and without knowing which way you did it, it's very difficult to help you. And even knowing the method you used, it could be something simple like a missing parenthesis or a checkbox that should have been checked.

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

  • ArmellineArmelline Member, PRO Posts: 5,371
    edited December 2013
    Without more info it's impossible to tell, but I'd hazard a guess that you're using:

    If Actor Receives Event Mouse Button is Down then
    Change scene

    when what you probably need is:

    If Actor Receives Event Mouse Button is Down and Actor Receives Event Mouse Position is Inside then
    Change scene

    It sounds like one of your actor is taking ANY mouse button press and using it to trigger its own scene change. If you add the Mouse Position is Inside condition to both buttons, it will hopefully solve your problem.
  • edhogshireedhogshire Member, PRO Posts: 12
    Do you guys have any examples of this? I would love to see a proj file with the option of being able to chose your character at the beginning of the game.
  • SocksSocks London, UK.Member Posts: 12,822
    edited January 2014
    Do you guys have any examples of this? I would love to see a proj file with the option of being able to chose your character at the beginning of the game.
    That's quite a hard question to answer without knowing anything about your game or how it works.

    Maybe have some buttons (they could be images of your characters) and depending on which one you press an attribute is changed to reflect the choice.

    So if you press button 3, then this attribute is changed to 3. And when your game starts you have a spawn actor behaviour that spawns actor 3 . . . something like that ?

    Like I say this is all random guess work and might not be applicable to what you are doing.
Sign In or Register to comment.