Actor collision issue w/ Demo

mobileappconceptsmobileappconcepts Member Posts: 11
edited November -1 in Working with GS (Mac)
So I've been working on a platform game for awhile now and one of my tasks is to create a similar style block layout to Mario Bros. So while trying to implement this I'm using an actor as my "Block" the problem I'm having is when you take a block and align them in such a fashion that would provide a "Platform" I'm having collision problems and my actor won't move.

Here's an example demo I made

http://gamesalad.com/game/play/59550

This demo uses two actors:

The Hero or player controlled actor

The platform actor

For simplicity I've used the same platform actor for the floor which actually shows something quite interesting. If you walk on the floor the movement feels natural and smooth. When you jump onto the "platform" or combination of blocks to look like one it seems as if the actor is getting stuck between the blocks even through they are the same height and it should be a smooth transition to the next one.

I'm really at a loss here I'm not sure how I could implement this or is this just a bug with Gamesalad?

The main reason I'm taking this block by block approach is so I can have individual reactions per block with the character. For instance you could smash a block above you, or move a block to find a secret.

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    I ran into the same issue. This is a known issue with the Box2D physics engine.

    I also made a demo here:
    http://gamesalad.com/game/play/40288

    The solution offered by rebump in the comments fixed it.
  • mobileappconceptsmobileappconcepts Member Posts: 11
    This solution worked great except for one small thing. My run animation doesn't work when I use ceil(self.position.y)

    Any idea how to fix that?

    It's pretty basic rule:

    When PlayerDir is 1 or 2 and actor is colliding with physical objects
    accelerate left or accelerate right
    with a three image animation

    It seems to have something to do with the actor colliding with physical objects, if I take that out the animation works fine.
  • firemaplegamesfiremaplegames Member Posts: 3,211
    Yeah, something got goofed up in the new 0.86 version. You should send your issue to CodeMonkey. The topic is in the yellow stickies...
Sign In or Register to comment.