Whats wrong with this experssion

gold911tgold911t Member Posts: 17
edited November -1 in Working with GS (Mac)
Hi There,

I'm trying to get a timer to show (mins:seconds:1/00 seconds)
and when I place this into a display text behavior, it either crash, or give me an invalid expression.
`
floor((floor(( game.Time - game.capturedTime )%3600)/60)%10)..":"..floor((( game.Time - game.capturedTime )%60)/10)..floor(( game.Time - game.capturedTime )%10)..":"..(floor(( game.Time - game.capturedTime )*10)%10)..floor(floor(( game.Time - game.capturedTime )*100)%10)
`
captured Time real
startCaptureTime real
paused boolean
Thanks
T

Comments

  • Rob2Rob2 Member Posts: 2,402
    It works fine in a display text (apart from being a nightmare to type in of course) you are entering all the names using the drop downs? You can type floor but the attributes must be selected from the list.
  • gold911tgold911t Member Posts: 17
    ok..will need to type all that..:(
  • Rob2Rob2 Member Posts: 2,402
    You can type 'floor' and all the (%*.."" etc but game.time and game.capturedtime MUST be selected from the drop down part of the expression editor. ALL must be entered using the expression editor window and don't forget the green tick at the end.:)
  • gold911tgold911t Member Posts: 17
    Thanks...that was it..
    i just used copy/paste on some..
    but when i type it all, it just worked..just fine..

    thanks again,
    T
This discussion has been closed.