CheeseMyBaby
Member
Ok so I'm drawing the level on the screen.
On the first lvl it says "Level 1"... on the second it should say "Level 2".
It's working BUT the previous level is still there.
Like this:
Level 1:
Level 2:
Level 3:
... and so on. See my problem?
I have a persistant instance of an object called "oGame". There's a variable called level that increments by one every time I change rooms.
At the moment the code is in the Draw GUI End-event but I've moved it around a lot (with the same result).
It looks like this:
I'm quite sure I'm missing something really obvious and will be very ashamed after this.
In my defense... I've been away from GMS2 for a long time and I've never been good at it.
On the first lvl it says "Level 1"... on the second it should say "Level 2".
It's working BUT the previous level is still there.
Like this:
Level 1:
Level 2:
Level 3:
... and so on. See my problem?
I have a persistant instance of an object called "oGame". There's a variable called level that increments by one every time I change rooms.
At the moment the code is in the Draw GUI End-event but I've moved it around a lot (with the same result).
It looks like this:
Code:
//Display current level
draw_text((RES_W - 100), 4, "Level " + string(level));
In my defense... I've been away from GMS2 for a long time and I've never been good at it.