Why does my actor go through (almost) everything?

Uuemaich

  • Posts: 52
Sorry guys, I'm super new to this program (just downloaded it a few nights ago) and I don't really know what I'm doing. I started a new game (mobile+web) from scratch because, well, I like to create things myself. Unfortunately, I'm new so I'm doing it right, haha.

Anyways! I've created a "wall" actor and a "block" actor. Both of which my character needs to NOT pass through. For some reason my character won't pass through the bottom of them, which is good. But he passes straight through the top of them. And the on the left and right sides, he sort of slides down...

By the way, I have my character moving on a grid, like, he moves 32x32 pixels, which is the size of all my sprites, tiles, etc.

If you need screenshots or anything just let me know, thanks!

rob1221

  • *
  • Posts: 9473
If you're setting the X and Y positions for your movement collisions aren't going to work.  You'll have to use speed or force, but that's difficult to do correctly in grid-based games.  Another option is to forget about Box2D, but since you mention you're new I don't recommend that.

Uuemaich

  • Posts: 52
When I said from scratch I meant no kits, but I am using the Tile Based Movement from the forge.

This is farts. My game idea really benefits from moving on a grid, but if I have to, I guess I can change it...

Also, how come my character won't go through the bottom of it, but only through the top and... partially through the sides?

« Last Edit: March 30, 2012, 07:14:00 pm by Uuemaich »