Log In  
Follow
Mondast

I need help adding a variable to a menu. I've created simple menus that I can add plain text to with "", but I have no idea how to add a variable to that menu.
Context is that the variable is a hunger meter that will go down periodically. I want the menu to display the current number of hunger.

3 comments



I'm brand new to coding in general and need help.
I'm trying to make it so that there is a 50/50 chance of getting a specific sprite to appear shortly after the game starts.
This is what I came up with, but it jus glitches and overlaps both sprites on top of eachother. Can someone let me know what I'm doing wrong?

if time()>8 then
end
if rnd(10)>5 then
cls()
map(0,0,0,0,16,12)
spr(017,px,py)
end
if rnd(10)<5 then
cls()
map(0,0,0,0,16,12)
spr(018,px,py)
end

5 comments