Hey, everyone so I had a quick question.
local lvl = lvlNum --- A file that contains lvl local EXP = (1.25\*(lvl^3)) local showExp = display.newText( ""..EXP, 480, 100, "calibri.ttf", 35 ) local function rankUp(event) if EXP \< playerEXP then lvl = lvl + 1 lvlTxt.text = string.format("%d", lvl) end end Runtime:addEventListener("enterFrame", rankUp)
is there a way for the EXP to check when the number has increased so the whole exp changes to the number it is supposed to be. Because the level can increase, but the EXP stays the same