This will help.

DreamStudiosDreamStudios Removed Posts: 148
edited November -1 in Working with GS (Mac)
Hi, i want to make a timer so that whenever I die it shows how many deaths I've had.
Attempts:1 and so on..

Anything?

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Make an integer attribute called 'attempts'.

    When the player dies:

    Change attribute 'attempts' to 'attempts +1'

    Save attribute 'attempts' - key 'attempts'

    On your screen somewhere have an actor that has a display behaviour:

    Display: attribute 'attempts'.

    On your first screen, put a load behaviour in an actor:

    key 'attempts' - attribute 'attempts'

    That should do it.

    QS :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • VoidedSkyVoidedSky Member Posts: 1,095
    You need a global attribute "deaths", and another global attribute "showDeaths"

    In your main actor in the rule when it dies, change attribute game.deaths to game.deaths +1' and also change showDeaths to 1.
    then in an actor that you want to display the deaths, use Display Text, and a rule, when show deaths is 1, then display text deaths. And add a timer, in the rule, like after 5seconds, change showDeaths to 0. And in the otherwise section, have it display text, but with just a space in it..

    I hope is helps..

    ~CTM

    EDIT: haha QS beet me to it!
  • DreamStudiosDreamStudios Removed Posts: 148
    Hi I've tried both methods but have been unsuccessful.

    @QS I can only see Display text not a display only behaviour

    @cowtechman how do I display text deaths?

    Thanks for the replies
  • DreamStudiosDreamStudios Removed Posts: 148
    whats a global attribute?
  • DreamStudiosDreamStudios Removed Posts: 148
    never mind its working :D
    I would just like to say your both awesome thank you :D
Sign In or Register to comment.