Shaking Sprite

  • I'm making a platformer but every time my sprite walks over a certain other sprite, he starts shaking up and down. I have tried everything from changing the collision points to changing the origin to just about everything else. Is there a way to fix this?

    I can post a .capx file if necessary.

    Any help would greatly be appreciated!

  • capx would help. otherwise, we're just guessing.

  • Here is the .capx file (just add the in front of it):

    dropbox.com/s/0putj5yqk22oo33/Wizard%20Game.capx

    Also, does anybody know why the player sinks into the block a little bit on the top stair? It seems like the collision mask is messed up, but it is only on that one block, and it's exactly the same as the others.

    Thanks in advance!

  • try removing the physics behaviour from wizard and ice blocks - appears to fix problem. Physics and other movement behaviours don't play nice together.

  • With the physics removed, is there still a way to allow the player to slide around when he comes in contact with the ice blocks?

  • Nevermind, I figured it out <img src="smileys/smiley36.gif" border="0" align="middle" />

    Does anybody know what's wrong with the top stair, in that it seems like it messes with the collision mask of the player?

  • I tried your capx, removed the physics, and tested it out - and the top stair seemed to work fine for me...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • That is strange... Maybe it will resolve itself when I go to actually build the levels!

  • Did you try removing physics ? (which would have taken you maybe a minute to test ?)

    The sliding has nothing to do with physics:

    <img src="https://dl.dropboxusercontent.com/u/143636437/examples%20for%20web/Ashampoo_Snap_2014.02.14_08h12m41s_001.png" border="0">

    Here is your game with physics removed.

    Note no wobble, no problem with top step and still sliding ?

    wizard game (with physics removed)

  • Yes, I did remove the physics, which completely removed the wobble/shake on the player.

    The issue with the top stair that I was referring to is this:

    dropbox.com/s/fxvu2mtzpumnkqd/Wizard.png

    It looks like the player sinks about a half of a pixel into the ice block, but only on the top stair. Is there any way to fix this?

  • probably due to your wizard character being outside the play area - well at least his origin point.

    Try moving the stairs down so the wizard stays in the play area or maybe move his origin point lower ? Both untested guesses.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)