Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Create:
- //set xp, max xp and level
- global.xp=0
- global.max_xp=50
- global.lvl=1
- End Step:
- //if xp is 50 then level up and raise the max xp so the next level you need 100xp ;)
- if global.xp>=global.max_xp
- {//level up :D
- global.lvl+=1
- global.max_xp+=50
- global.xp=0
- }
- Draw:
- //draw texts
- draw_text(5,5,'xp = '+string(global.xp)+' / '+string(global.max_xp))
- draw_text(5,25,'lvl '+string(global.lvl))
Advertisement
Add Comment
Please, Sign In to add comment