Display Text help please.

outasiteoutasite Member Posts: 417
edited November -1 in Working with GS (Mac)
In my game I would like to make a prototype actor so that I do not have to edit in EVERy single scene. My game has several worlds and each world has many levels.

I want to actor to display the 'world' number, a dash, and the 'level' number.
For example: 1-1

I have two attributes made, both integers, one current world and current level.

In the actor when I try to display, I always get "Invalid Expression"

Thanks guys

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    try this in your display text

    attribute current world.."-"..attribute current level
  • outasiteoutasite Member Posts: 417
    Thank You so much... how does the .. work ?
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    it basically allows you to string together a few different attributes and user entered text.

    you can use it to display time if you track it:

    game.Minutes..":"..game.Seconds

    or money:
    "$"..game.dollars.."."..game.cents
  • outasiteoutasite Member Posts: 417
    Thanks. again.
Sign In or Register to comment.