S
Stratos.la
Guest
Say i have a global gold variable that is saved. and mid-level killing monsters gives gold, how can i show how much the player earned in that level particular? i have tried it like so but it doesn't work.
Right now is in the create event. i tried putting it in begin step and end step but still it shows 0. i also tried adding the difference, still nothing
Right now is in the create event. i tried putting it in begin step and end step but still it shows 0. i also tried adding the difference, still nothing
GML:
previous_gold = global.gold;
xp = global.p_exp
gold = global.gold
previous_xp = global.p_exp
text = "gold : " + string(gold - previous_gold);
text1 = "Exp : " + string(xp - previous_xp);