•••HELP! Display game.time without milliseconds•••

OlsenOlsen Member Posts: 30
edited November -1 in Working with GS (Mac)
How can I display the game time, showing only minutes and seconds and not milliseconds?

I've tried to write in "Floor(Game.Time)" like BarryTheBrave suggested in another thread, but it didn't work!

Does anyone know how to do this? Please help.

Comments

  • SkyMapleSkyMaple Member Posts: 817
    I don't think you write floor, try adding it from the drop down menu.
  • BarrytheBarrythe Member Posts: 82
    Olsen no need to start a new thread you can just update the one you were using five minutes ago ;)

    And don't write FLOOR, you need to select it from the drop down box that you will see in the expression editor (like I said in the last thread). For some reason typing 'FLOOR' will not have the same effect as selecting it from the dropdown.
  • OlsenOlsen Member Posts: 30
    This is what I have tried so far, in the expression editor:

    floor(game.time) (by writing floor and adding it from the insert function)
    floorgame.time

    none worked :/
  • BarrytheBarrythe Member Posts: 82
    Select FLOOR from the dropdown menu, then this will give you the following if I remember correctly, there may be some text within the parenthesis: "FLOOR()".

    then go inside the brackets with the cursor, make sure there's no text inside the brackets, and select game.time, so all together you should have"FLOOR(Game.Time).

    I think that works but I'm at work away from gamesalad right now so I'm going from memory.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    are you putting this into a display text behavior?

    You could try this:

    1)Create an integer attribute self.MyTime
    2)Constrain self.MyTime to floor(game.time)
    3)Display text - self.MyTime

    And as others have said you can never type expressions. You must always select them from the list.
  • OlsenOlsen Member Posts: 30
    im back.. Ill try to do the ways you said
  • OlsenOlsen Member Posts: 30
    BarrytheBrave said:
    Select FLOOR from the dropdown menu, then this will give you the following if I remember correctly, there may be some text within the parenthesis: "FLOOR()".

    then go inside the brackets with the cursor, make sure there's no text inside the brackets, and select game.time, so all together you should have"FLOOR(Game.Time).
    I think that works but I'm at work away from gamesalad right now so I'm going from memory.

    This worked perfectly, thanks :)
  • OlsenOlsen Member Posts: 30
  • BarrytheBarrythe Member Posts: 82
    Excellent news Olsen. PS if that's you in your profile pic you have awesome taste in hats ;-)
Sign In or Register to comment.