Obstacles BBOX issue

aL BeasTie

Well-known member
Just started a fresh mod using latest openbox and again I get this bbox issue with basic obstacles. 
Code:
type obstacle
bbox	24 24 19 23


once it's in the game it feels like the collision is more like the picture below.  I can't walk close enough from the sides to even attack/damage the obstacle, but from the top i can still walk though it...

How it feels in the game



 
Your bbox setting is correct so that's not the issue.

What you really need is platform setting. I'm suggesting this for barrel's platform:
platform 33 46 -10 -10 10 10 7 20

If you don't want players to stand on top of the barrel, change 20 into 2000 or higher.
 
thanks Bloodbane!

Do you know why it doesn't work the normal way?

the platform trick works well but I still need to put a small bbox so you can break the objects.  Also I noticed even thou I was using the same offset already and your platform code should be exact i had to change it to
Code:
platform 33 49 -10 -10 10 10 7 20

  it seems like there is still always a few pixels difference to what you get in game.  I had issues with smaller platforms in the past when trying to make a nes style 2d platformer.  similar to then, a lot of the assets I'm using now are tiny 8x8 to 16x16 and a few 32x32 largest ones

 
I don't know if something changed. I usually set/disable platform when creating obstacles so I don't feel any change (if there were any).

it seems like there is still always a few pixels difference to what you get in game.

Well, I could care less about that since I always set extra pixels to give sense of thickness. So if say obstacle is 100x100 pixels in size, I set platform length 20+100+20. That means 20 pixels to the left and 20 pixels to the right.
 
Back
Top Bottom