For Player Health

0 favourites
  • 4 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • Hi,

    I wana to know how to use health variable for player

    I have created a variable that name is health and set the value is 3

    ( want when enemy hit the player in 1 time the player will not destroy and same to the second hit and last hit that is 3 time when enemy hit the player the player will destroy that it )

    And create the sub-event for the player

    player health<1 player destroy

    but this is not working well

    so plz help me

  • Well that's the right thing to do

    You can make it when player is hit to subtract 1 from health

    and as you posted when health is=0 or <1 or whatever, then destroy

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks Pakost

    that is working one again thanks a lot for help

  • Hi Pakost,

    I have another question that is for game speed When I checked the game on my local system that is working fine but when I tested it on my android phone that time speed is too slow.

    basically when I click the moving button with the help of touch event

    I have this code

    event

    Touch---Is Touching --(object)

    action

    Player ------ set X to self.X +self.xSpeed*dt

    where xSpeed is plyer's variable.

    do you have any idea what is the issues

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)