• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

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!
 
S

Sanctifier

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.
 
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