Show Level

ShpintShpint Member Posts: 404
edited November -1 in Working with GS (Mac)
How can I show what level the player is on on the screen?
Like, if they're on level 5, make number 5 appear on screen...
Thanks

Comments

  • Ruslan21Ruslan21 Member Posts: 228
    Here is how.

    First make a graphic for number

    Then, I'm assuming you already have background
    Make actor for number
    In number actor make a rule
    Timer after 2 or whatever seconds destroy this actor
    In your background put spawn actor "???" number
    And here you have it
  • ShpintShpint Member Posts: 404
    but then there are like more than 1 level. I don't want to create 1 for every level.
    Is that possible?
  • Ruslan21Ruslan21 Member Posts: 228
    Yes with atrebuttes
  • debugdesigndebugdesign Member Posts: 886
    Or if you want to keep it simple create an actor with a nice border but space in the middle fir the number.

    Create a game attribute called 'level' - which is an integer and set the starting value as 1

    then click click the background of each level and add:
    change attribute. - 1 (or whatever level number it is)

    now click your actor with the nice border and then add:
    display text. Then in the empty box - click game > scroll down to 'level' and select

    then drag that actor onto the stage and test

    it should show your nice bordered box with a big number 1 in it.
  • ShpintShpint Member Posts: 404
    ok, thank you everyone :)
    I end up making an attribute 'level' (interger) and set it to one.
    I made it
    -when actor 1 collide with actor 2 "Spawn "Stage clear" + Change 'level' to 'level+1'
Sign In or Register to comment.