Problem description
My problem is about my Kaboom project. My bean sprite isn’t jumping when i click it. It also won’t respond to gravity even with the ‘body(),’ function.
Here is my code.
// putting together our player character
const bean = add([
sprite("bean"),
pos(80, 40),
area(),
body(),
])
// .jump() when clicked
onClick(() => {
bean.jump()
})
Expected behavior
Jump when clicked
Actual behavior
Literally Nothing
Steps to reproduce
link in my replit profile named ‘Kaboom’, please fix my code. My appreciation and gratitude for you.
Browser
Opera GX
OS
Mobile Device - Cannot Process
Device if mobile
Android
Plan
No plans