Why dont things align properly?

0 favourites
  • 7 posts
From the Asset Store
Mouse cursor is something that the player controls and sees all the time, that's why it is so important to make it cool!
  • Im using the 8 Direction Movement behavior for the lightblue box and the walls have the Solid behavior.

    The left pic is how i see the things in the layout editor, everything is aligned properly but one i start the game the lightblue box starts in another position and when i move it sometimes it can reach the walls and most of the times there is always a gap between the box and the walls why does that happen?

    Another example here, also apart from the box being in another position from where i put it in the layout editor it also can move along an open are the same size as the box, the box is 32x32 pixeles, and that gap there its suposed to be 32x32 since im using the snap to grid feature, but why cant i travel along that little path? That really gets me angry as i want to make the movement perfect for kinda like a "slide the pieces" puzzle but nothing matches together??

    Here is a .capx if you want to take a look at it

    https://mega.nz/#!2QpWjYJC!tF0bqDL3wusQ ... DBKf_ZYqyo

  • Could you share your .capx file?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Are they on different layers with different parallax values?

  • Could you share your .capx file?

    I edited the original post with a link to the .capx

    Are they on different layers with different parallax values?

    Nope

  • Probably didn't find out the issue, but thought I'd contribute.

    I exchanged the TiledBackground object with a regular Sprite which seemed to reduce the inaccuracy.

    Might be a bug or an issue with the TiledBackground object.

    With TiledBackground:

    With Sprite:

    [EDIT:] Probably found the issue.

    This is what it looks like when disabling the collisions of the Player Sprite:

    Maybe you can change your program with that information or submit a bug thread?

  • Thanks for sharing!

    It seems the 8-direction behavior is pushing out the player. This happens because they're actually both the player and the solid background are actually touching each other on the grid, so Construct 2 pushes out the player to the left.

    I don't think using the 8-direction behavior isn't a good way to set this up. I would try using the bullet behavior instead.

  • Probably didn't find out the issue, but thought I'd contribute.

    I exchanged the TiledBackground object with a regular Sprite which seemed to reduce the inaccuracy.

    Might be a bug or an issue with the TiledBackground object.

    With TiledBackground:

    With Sprite:

    [EDIT:] Probably found the issue.

    This is what it looks like when disabling the collisions of the Player Sprite:

    Maybe you can change your program with that information or submit a bug thread?

    Thanks for taking your time to try solve this, I tried using Sprites instead of TiledBackground but i still get the same issue and dissabling the collisions defeats the reason to use a movement behavior no?

    Thanks for sharing!

    It seems the 8-direction behavior is pushing out the player. This happens because they're actually both the player and the solid background are actually touching each other on the grid, so Construct 2 pushes out the player to the left.

    I don't think using the 8-direction behavior isn't a good way to set this up. I would try using the bullet behavior instead.

    Yup i will keep trying to hack some work around to this issue, but i think it should not be this weird/hard

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