Log In  


I am developing a small hockey type game where the player character can move in all directions. It works fine enough but because of the D-pad movement, if the player tries to go in a circle, its very much a diamond shaped movement instead.

I am not sure if there is any way to make this movement smoother, so its circular if you hit the buttons in quick succession like the below gif image?

Any suggestions or feedback are most welcome! :) Thanks!

Cart #testinghockey-0 | 2021-07-21 | Code ▽ | Embed ▽ | Forks ▽ | No License

P#95130 2021-07-21 15:44 ( Edited 2021-07-21 15:46)


I believe you need acceleration to emulate analog controls. Here's a quick modification that I did to your demo:

Cart #muzidodubi-0 | 2021-07-21 | Code ▽ | Embed ▽ | Forks ▽ | No License

P#95140 2021-07-21 16:39

Amazing to get a reply so quickly and its exactly what I needed!

Galenfen - thank you very much for your help!

P#95141 2021-07-21 16:44

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2022-09-26 19:59:27 | 0.007s | Q:20