How do I Trouble with parallax?

0 favourites
  • 3 posts
From the Asset Store
Set of 10 Parallax Background to make pixel art game.
  • Hello! I was having some difficulty with parallax on a game I was working on. I have an event that says "On any touch start | Create object: 'Tap' on layer 'UI' at Touch.AbsoluteX, Touch.AbsoluteY". This works fine until I resize the preview window, Now the sprite spawns at the position of the area that was touched * the scale of the preview window.

    Does anyone know how to fix this???

  • rather than using AbsoluteX and Y, I would use just X and Y and specify the layer name

    Touch.X("UI") and Touch.Y("UI")

    This is if you want the object created on the UI layer. If you want the object created on a different layer then change the name of the layer in the brackets to get the correct coordinates for that layer.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • rather than using AbsoluteX and Y, I would use just X and Y and specify the layer name

    Touch.X("UI") and Touch.Y("UI")

    This is if you want the object created on the UI layer. If you want the object created on a different layer then change the name of the layer in the brackets to get the correct coordinates for that layer.

    Thanks, this worked wonders!

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