function help *selecting a character*
lachlan10
Member Posts: 0
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.
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
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
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.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support
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.