Trouble with my "movement dot"

  • Hi guys,

    I am working on some control functions for my new game but i'm stuck at one part.

    I think it has something to do with the parallax of my layers or something but i tried everything and can't seem to figure it out.

    It's the classic control, a dot inside a circle that can be dragged around to move. In my case i also need the angle of the center dot.

    This works great when using it on the layout size ( in my test file i used 640,640 ) but it stops working like it should once the layout is moved around.

    I got a object with a "scroll to" behavior and once moves the dot is not working anymore. It is like it still takes positions at the original frame layout and not once moved.

    Here is my test project:

    files.fm/u/qf67sfnx

    To test my problem

    1. Start the layout and drag the frame size so the left, top and right border will fit your screen.

    2. Drag the dot in the circle to see how the control works.

    3. Press the ugly "drop" button

    4. Wait for the object to fall down

    5. Try the control dot again > My problem

    Thanks in advance guys!

  • Use Touch.X(layer) and Touch.Y(layer) to get touch coordinates on layer with different parallax. In your case Touch.X(0) and Touch.Y(0)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I thought i checked it all.. Missed that one!

    Works like a charm thanks a lot!

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