Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hi, Gumpy. I need help with something.

Yes, what can I help you with?

Well, I'm making a Sonic fangame and I'm having trouble implementing the duck/crouch feature.

Here's the player's normal collision box; 

When Sonic is crouched he should have a collision box of 16x16; 

I've tried to set a different player sprite by attaching a script to the down button, it didn't work. That's why I came to you for help. Any idea of what I'm doing wrong?

You can set a new hitbox using the 'Set Actor Collision Bounding Box' event when sonic is set to his crouching state.

The GB Studio Discord is really good for fast responses to these types of questions, I'd join the discord if you haven't already.

I don't seem to have that event, is it in a plug-in?

(2 edits)

You may not be using the most recent version of GB Studio? It's a new event that is not currently listed in the GBS docs.

I'm using  GBStudio 3.2.

I think there is a plugin that will help you change the collision bounding box in GBS3.2. If there are any other issues, its best to ask questions on the GBS discord.