Millisecond Timer Problems

allaboutiweballaboutiweb Member Posts: 42
edited November -1 in Working with GS (Mac)
Hi,

I've just been watching the 'How to add a timer down to milliseconds' in the cookbook and after checking, double checking and even triple checking I still get 'Invalid Expression' appearing in the Actor when I preview the game?? Any clues?

Cheers,

AAi

Comments

  • StormyStudioStormyStudio United KingdomMember Posts: 3,989
    what have you written as an expression?
  • allaboutiweballaboutiweb Member Posts: 42
    Exactly (and I did this twice just so as to check) what it says in the CookBook Video with all the floors and .. and (( and )) and % etc etc
  • msonesmsones Inactive, Chef Emeritus Posts: 75
    Make sure you select "floor" and "game.time" from the function and attribute drop-down menus, respectively.

    The expression should read:

    floor(floor((game.time%3600)/60)/10)..floor((floor(game.time%3600)/60)/%10)..":"..floor((game.time%60)/10)..floor(game.time%10)..":"..(floor(game.time*10(%10)..floor(floor(game.time*100)%10)

    Hope I typed that right. :-P
  • allaboutiweballaboutiweb Member Posts: 42
    Thanks msones, but that didn't work either.
  • allaboutiweballaboutiweb Member Posts: 42
    Not to worry though, FireMapleGames has it working in this example:

    http://gamesalad.com/game/1898

    phew.....
Sign In or Register to comment.