Log In  

Cart [#44289#] | Code | 2017-09-17 | License: CC4-BY-NC-SA | Embed
2

Cart [#44287#] | Code | 2017-09-17 | License: CC4-BY-NC-SA | Embed
2

Cart [#44278#] | Code | 2017-09-17 | License: CC4-BY-NC-SA | Embed
2

A simple example of top down movement using trigonometry for accurate spacing on the diagonal.
I can't do much about the jittery diagonal control, this is due to it being low resolution pixel perfect movement.
This idea for this upload is to help people have a simple base without relying on the xx/yy method which doesn't take into account pythagoras theorem.
Do with it as you wish, I would love to see it smoothed out without being too complicated to understand.

  • Imp

Remember to change to _update60() if you prefer.

Change Notes:
V1.2 Released:
Replaced True/False with 1/_

           V1.1 Released:
                          Now even more compact with a shorter method.
P#44279 2017-09-17 13:36 ( Edited 2017-09-19 00:44)

:: DR4IG

And using this and the devkit mouse, You can do 'smash tv' style twin stick movement by drawing the legs based on movement, And THEN the upper player facing towards where the mouse clicked/screen was touched.

P#44331 2017-09-18 20:44 ( Edited 2017-09-19 00:44)

[Please log in to post a comment]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-11-18 21:32 | 0.020s | 4194k | Q:40