Castle
play338.2k
6.2k
238 Comments
Next up
#dash #free objects
N O O O o o o Β° Β° Β° . . .
fire53Reply
"chum buckets ,feed me the weak" πŸ”₯
fire5Reply
𝕐𝕒𝕖π•ͺ(*Β΄β–½`*)(*Β΄β–½`*)
fire3Reply
N O 0 o ⁰ β—‹ Β° -- Bird.lua (Attach this script to your bird Blueprint/Actor) local FLAP_STRENGTH = 600 -- How high the bird jumps local GRAVITY = 2000 -- How fast the bird falls local VELOCITY_Y = 0 -- Current vertical speed of the bird -- Called every frame function onUpdate(dt) -- Apply gravity VELOCITY_Y = VELOCITY_Y + GRAVITY * dt self.actor.y = self.actor.y + VELOCITY_Y * dt -- Clamp bird's position (prevent it from going off-screen) if self.actor.y < 0 then self.actor.y = 0 VELOCITY_Y = 0 elseif self.actor.y > castle.dimensions.height - self.actor.height then -- Assuming your bird has a 'height' property self.actor.y = castle.dimensions.height - self.actor.height VELOCITY_Y = 0 -- Game Over if it hits the bottom (implement game over logic here) end end -- Called when the user clicks/taps function onInput(input) if input.isDown then VELOCITY_Y = -FLAP_STRENGTH -- Make th
fire2Reply
I β™‘ glitching
fire2Reply
𓆑𓆏𓆉𓆦π“ƒ₯π“ƒ π“ƒ°π“ƒ±π“ƒ―π“ƒ­π“ƒΈπ“ƒ—π“ƒ™π“ƒŸπ“„€π“„π“„‚π“„ƒπ“ƒšπ“ƒœπ“ƒ›π“ƒπ“ƒžπ“ƒ’π“ƒ“π“ƒ”π“ƒ•π“ƒ–π“ƒ‘π“ƒ’π“ƒ¦π“ƒ©π“ƒ¬π“ƒ¬π“ƒ²π“ƒ΄π“ƒΆπ“ƒ·π“ƒΉπ“ƒ»π“ƒ½π“ƒΎπ“ƒΏπ“„„π“„…π“„†π“„‡π“†ˆπ“†Œπ“†—π“†™π“†šπ“†π“†‘π“†’π“†“π“†”π“†•π“†Šπ“†π“†£π“†€π“†₯𓆨 FacemojiKeyboard
fire1Reply