Jump to content

  • Log In with Google      Sign In   
  • Create Account


Megalukes

Member Since 01 Feb 2013
Offline Last Active Feb 05 2013 05:50 PM

Topics I've Started

Bigger Hitboxes in a Tile based sidescroller

01 February 2013 - 09:13 AM

Hello guys. I've been trying to make a sidescroller game. I tried a lot of different kinds of collision methods, but then I found out that a tile based system would be enough for me.

 

I'm using Tonypa tutorials. They're in Flash, so I have to change a lot of things.
I'm currently using 32x32 tiles in my game. The collisions just work fine, but if the character's hitbox is bigger than 32x32, all my code seems useless. The character's hitbox gets inside tiles when moving/jumping. I have no idea how to fix that.

 

I guess this may be a common issue regarding sidescrollers since a lot of them uses tilemaps.

I attached my current project. I'm using Ruby for now, but I intend to write everything in C++ if I can get everything working just fine.

Thanks in advance.


PARTNERS