Ask coding questions

← Back to all posts
Is there a way to make enemy hitboxes smaller
xMisbahx (20)

I want to make the hitbox for the enemies(froggyminions) smaller. Currently, I can't even make the duck jump over the froggy minion without it ending in gameover. Is there a way to make it so that scene(gameover) only happens when the duck actually hits the frog and not the space around it?

Answered by Geocube101 (645) [earned 5 cycles]
View Answer
Geocube101 (645)

Hello again
Try removing the whitespace around your sprites
There's a lot of transparent blank space around your actual sprite and I'm thinking Kaboom takes that into account

xMisbahx (20)

@Geocube101 Hello to you too. I have no idea how to remove the whitespace. Do I need to change the file type? If it helps, I handmade all of the sprites (except for the lava block) in Pixilart

Geocube101 (645)

@xMisbahx Just use an image editor. Try cropping the image so that the sprite touches the edges without being cut off. The file type can remain the same

QuickV (126)

Usually in my games, I just have to remove the excess space around my sprites... Basically try to make the images contain less empty space... I don't know how to make it "pixel perfect" but there's probably a way.