Help making a button that stops player and initiates other actors movement and vice versa...

robot dragonrobot dragon Member Posts: 0
edited July 2012 in Tech Support
Im having a difficult time to set up rules for a button, i want the player to move forward and tilt controls up and down when "button 1" pressed. Then when "button 2" is pressed i want the player to stop and to spawn one actor and use the same controls as the player then when "button 2" is released the actor is destroyed. Kind of like that mario game were you switch off between mario and Luigi and they have different roles. I have all ready gotten the movements of the player set but not to the buttons.
Thanks

Answers

  • UtopianGamesUtopianGames Member Posts: 5,692
    Sounds like you need a game integer or a boolean and add the following to the move rules along with changing the state when the button is pressed.

    If you use a game.integer set to 1 hero 1 will move if its set to 2 hero 2 will move.

    Boolean player2 move = false then hero 1 will move if true hero 2 will move.

    Either will work.

    Darren.
Sign In or Register to comment.