Grid Move Questions

AlkaPPAlkaPP Member, PRO Posts: 194

Hi all,

Please first look at the photo below. My aim is that when i swipe the black dot, it will move to the purple dot direction. When it collide with the purple dot, it will stop at 1 grid before the purple dot, which is the red X position.

Please if someone could help me with it.

Thanks,

Comments

  • colandercolander Member Posts: 1,610

    To get help with this you will need to give more information. Is the grid always the same size and in the same location, are the actors always in the centre of the grid squares?

    If so you could use vector to angle to get the direction and game level attributes to store the x and y of the "X" actor position calculated from the x and y positions of the purple dot actor.

Sign In or Register to comment.