select image to select character

hey guys ... i have two characters (man/women) ... can you tell me how to the player can select the gender then press the (done) bottun then go to level select and start with the character based by gender or an image of the character and how to save what the player has chosen in the first place ? please help ^^

Comments

  • -Timo--Timo- Member Posts: 2,313
    first make 2 buttons, 1 for the woman and 1 for the man. make an boolean attribute and call it gender (or something) in the button from the man say
    if touch is pressed do change 'gender' attribute to true
    in the button from the woman say
    if touch is pressed do change 'gender' attribute to false
    in the 'done' button just say change scene or whatever you want to do... :)
    in the player that can be a man or a woman say
    if attribute 'gender' is true do change image : man
    if attribute 'gender' is false do change image : woman
    hope this helped :)
    good luck

    PS: you also can say in the button from the man
    if attribute 'gender' is true do change image to another image so you can see you have selected the man ;)
    same in woman but then if its false
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    edited July 2013
    Or you could use an integer attribute -- it's less of a hassle.

    See the project below.
    You can edit the project so that when game.Gender = 1, change image to man. If game.Gender = 2, change image to woman.
  • abbas96abbas96 Member Posts: 9
    thanks a lot guys you really helped me ... and by the way how i set the player to be a man or women? in the level when in game levels i make a button and name it player or something? and thanks for you'r help
Sign In or Register to comment.