How do I make death timers work? and something else inside.

0 favourites
  • 6 posts
From the Asset Store
94 Inside buildings views - Isometric view - PNG transparent - 2048x2048
  • so the thing is this:

    Im making a fighting game. I have everything set up from Main Menu, the game itself, and the End part. Problem is I cant seem to make the death timers work.

    to give you an idea of how i did (the death timer) it is like this:

    i set my animation to loop only once, got the timer behavior on my sprite, but the program still isnt going through the

    [player1][start] timer lose "[i]loser[/i]" for 1.0 sec
    ->[player1]on timer lose "[i]loser[/i]" [system] goto <layout>end screen [/code:2f062rkw]
    
    the animation is looping despite being set only to loop once and gets stuck there.
    
    Another one is how do I "stop the opponents when the foe is defeated"?
  • I didn't completely understood your question but i'll try, "how do I stop the opponents when the foe is defeated"? I assume you make your opponents in sprites, you can add an instance variable to your enemy sprite lets say HP. Make an event that check the enemy sprite's HP is below 1. ^^. You can check the shooter game examples.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • your event is triggered every tick, so the timer is started every tick..

    Add a condition trigger once while true to the top event and put the on timer as a seperate event instead of a sub-event.

  • your event is triggered every tick, so the timer is started every tick..

    Add a condition trigger once while true to the top event and put the on timer as a seperate event instead of a sub-event.

    how do i do this?

    add a condition (right click> add condition)

    then?

  • system trigger once while true..?

  • system trigger once while true..?

    IT WORKED. THANKS.

    another inquiry.

    I still have to disable the keyboard when there is a winner...

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