• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Mac OSX Anyone got a clue of whats up with this text

N

N0tAB0t

Guest
look at the replies sorry it only let me post the stuff there

this is the code drawing it
Code:
///Draw Gui

display_set_gui_size((surface_get_width(application_surface)*3), (surface_get_height(application_surface)*3));

    draw_text(gui_x + offset, 16, mgs1)

    draw_text(gui_x + offset, 48, mgs2);

    draw_text(gui_x + offset, 80, mgs3)

    draw_text(gui_x + offset, 112, mgs4)

    draw_text(gui_x + offset, 144, mgs5)

    draw_text(gui_x+ offset, 176, mgs6)



    draw_sprite(spr_heart_stat_24x24, 1, gui_x-8, 16)

    draw_sprite(spr_heart_stat_24x24, 2, gui_x-8, 48)

    draw_sprite(spr_heart_stat_24x24, 3, gui_x-8, 80)

    draw_sprite(spr_heart_stat_24x24, 4, gui_x-8, 112)

    draw_sprite(spr_heart_stat_24x24, 5, gui_x-8, 144)

    draw_sprite(spr_heart_stat_24x24, 6, gui_x-8, 176)

display_set_gui_size((surface_get_width(application_surface)*2), (surface_get_height(application_surface)*2));

Code:
///Create Event

mgs1 = "HP: " + string(hp) + "/" + string(maxhp)

mgs2 ="LEVEL: " + string(level)

mgs3 = "XP: " + + string(expr) + "/" + string(maxexpr)

mgs4 = "STAMINA: " + string(stamian) + "/" + string(maxstamian)

mgs5 = "MANA: " + string(mana) + "/" + string(maxmana)

mgs6 = "ATTACK: " + string(attack)
gui_x = 32


Hello lovely life forms

the 4th and 5th are what I'm confused about
 
Last edited by a moderator:

Nocturne

Friendly Tyrant
Forum Staff
Admin
Does it do that regardless of the values being drawn or only when using specific ones? Could be a font kerning issue... is this a sprite font or a font resource? Have you tried clearing the asset cache (broom icon at the top of the IDE) and then running again?
 
N

N0tAB0t

Guest
I'm pretty new to gms2 so idk sprite font or a font resource i tried clearing the cache and it does it whenever it changes
 
N

N0tAB0t

Guest
Hey little update this is the code thats making this happen dont know why
Code:
with (obj_player_stats) {
    expr += 1;
    if (expr >= maxexpr) {
        level += 1;   
        expr = expr-maxexpr;
        maxexpr = (30 + (level * 25) - 20);
        maxhp += 2;
        hp = maxhp;
        maxstamian += 2;
        stamian = maxstamian;
        attack  += .5;
        //maxmana += 1;
        mana = maxmana;
    }
}
 

Rob

Member
Hey little update this is the code thats making this happen dont know why
Code:
with (obj_player_stats) {
    expr += 1;
    if (expr >= maxexpr) {
        level += 1;  
        expr = expr-maxexpr;
        maxexpr = (30 + (level * 25) - 20);
        maxhp += 2;
        hp = maxhp;
        maxstamian += 2;
        stamian = maxstamian;
        attack  += .5;
        //maxmana += 1;
        mana = maxmana;
    }
}
The only time I've had that kind of issue is when I was drawing things on top of each other. If you comment out the lines that look wrong, does anything show underneath?
 
N

N0tAB0t

Guest
I Dont think so it happens when the maxstamina and maxmana are increased with this code
 
N

N0tAB0t

Guest
UPDATE: It was something to do with to much info being processed at once
 
Top