How do I fix the motion of the Ghosts from the PacMan example if I center the layout?

0 favourites
  • 3 posts
From the Asset Store
181 High quality audio files for your Zombie and Ghosts
  • Hi everyone,

    I have a weird behaviour with the ghosts of the Pac Man example provided by Construct.

    I wanted to change the size of the maze and have the Tilesize at 64.

    I updated the value Game.TileSize to 64.

    If I center the maze with the layout, my ghosts are stuck in their base. However, if I move my maze slightly on the right and down from the center of the screen, it works perfectly. The ghosts are behaving accordingly to the array and the example.

    Really strange, isn't it?

    Is there a hidden value that I have to tweak somehow to keep the maze in the middle?

    Thank you for your help!

    The Template name is Eat'em all

    I changed the layout at 1920x1080 and I tried to center the maze without changing anything, you will notice the same error with the ghosts. There is a kind of marge but I don't know if it is a bug or something I could fix.

  • I noticed something else.

    The Layout is 1920x1080

    The ghosts work efficiently if the maze is off from the center by -32 or +32 pixels

    I don'y know if it could help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Nobody has an idea?

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