Here's the codeElephantEthan wrote: ↑29 Oct 2018, 15:15How did you get the gui frame to stay? I tried to make the frame change depending on the weather, however, I can't get it to stay there. It blinks a lot.
Code: Select all
local LuaIcon
function script:update ()
LuaIcon = Draft.getDraft("Lua.DrawImage.Icon"):
getFrame(0)
Drawing.drawImage(LuaIcon, 2, 150)
end
function script:overlay ()
local Width, Height = Drawing.getSize()
Drawing.drawText(Width, 0, 0, TheoTown.RESOURCES.skin.fontSmall)
Drawing.drawText(Height, 0, 10, TheoTown.RESOURCES.skin.fontSmall)
C = 0
x = 0
y = 0
while (C <= 200) do
Drawing.drawText("Bear Attack!", x, y)
C = C + 1
x = x + 10
y = y + 10
end
end