Main player re-spawn

Ruslan21Ruslan21 Member Posts: 228
edited November -1 in Working with GS (Mac)
Hi there. i have a player and a lot of enemies. Now i have ru when enemy shoot player it destroes and spawn Get ready text then i have invisible actor that would spawn my main player again after 3 seconds. Bu for some reason after it resporns player wouldnt shoot, or would shoot only once. Why. Please help

I upload simple project can anyone take a look and redo the project or just explain it please

http://gamesalad.com/game/play/52749

Comments

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    You are using a touch on an actor that sets a game attribute that is read by the player.

    It would be better and easier if the player just looked for the mouse button down event to start shooting and you don't need that extra attribute nor that actor that covers the whole viewing area
  • Ruslan21Ruslan21 Member Posts: 228
    whould you please explain how to do this? Please please please
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Delete your 'Touch To Shoot' actor.

    In the first Rule of your Player actor
    ---- change the condition to Event->Mouse Button->Down
    ---- Delete the Change Attribute Behavior
  • Ruslan21Ruslan21 Member Posts: 228
    thank you very much you are the best
Sign In or Register to comment.