Make games on your phone.
Get the app!
AndroidiOS
Castle
5 Comments
Next up
#game #wall remixed
Me saving npc's life Npc: thank you for saving my life
fire1Reply
oh the lag
snapshot
fire1Reply
my.text.content = "" my.layout.visible = false typeSpeed = 0.02 function typeDialog(dialog) print("begin printing") typeID = 0 displayDialog = "" my.layout.visible = true typingRepeat = castle.repeatAtInterval(typeSpeed, function() typeID += 1 displayDialog = string.sub(dialog,1, typeID) my.text.content = displayDialog if typeID >= #dialog then castle.stopRepeat(typingRepeat) print("done printing") end end) end function onCreate() end function onUpdate(dt) end function onMessage(message, triggeringActor) print("Received rule message: " .. message) if string.match(message, "txt = ") then local getMessage = string.sub(message, 6, #message) typeDialog(getMessage) end end
fire1Reply
fire1Reply
How much get up🤔
fire1Reply