How to get 8-directional movement using D&D

T

TheGreatZolaski

Guest
Hello,

My sprite moves up, down, left, and right correctly. How can I get him to move diagonally? Like up and left, up and right, for example. I've seen a lot of answers for coding, but this is a fairly simple game and I'd like to stick with drag and dropping. Thanks in advance!
 

Sanctifier

Member
If you add the keyboard events for each arrow key and give the up and down events the move vertical function and the left and right events the move horizontal function than that ought to do it. Remember to input negative values for upwards and leftwards movement as the 0,0 of the axis is in the top left corner.
 
T

TheGreatZolaski

Guest
If you add the keyboard events for each arrow key and give the up and down events the move vertical function and the left and right events the move horizontal function than that ought to do it. Remember to input negative values for upwards and leftwards movement as the 0,0 of the axis is in the top left corner.
Thanks! I realized I had to use Jump To Point option to get the diagonal movement.
 
Top