Diagonal Movement
Last Update: 2013.01.24
Script Download
This script allows to set diagonal movement for the player and events. This feature is opitional for events. It’s possible to have different graphic for the diagonal movement
Requires the Victor Engine – Basic Module
Full instructions at the header of the script.
Was this useful for you? Consider lending a hand by becoming my patron at Patreon, so I can continue creating content to help you and many other developers.
This script is a bit odd… when moving diagonally, your character moves oddly slow, even when sprinting the movement speed remains unchanged. I am using this with pixel movement however so that could have something to do with it I guess.
LikeLike
The diagonal movement speed is adjusted because the diagonal distance is longer (pythagorean theorem) but the default maker diagonal move ignores it.
LikeLike
Any way to change it?
LikeLike
look for the ‘def distance_per_frame’ (there are two on the script) and delete the whole method.
LikeLike
About the def distance_per_frame method you mentioned…
Could you tell me how to edit it? The way it is now is way too slow, but the character is too fast when I delete the method.
I tried editing the values but I had no succes, so what do I have to do to make the player move faster?
LikeLike
You can replace the two insances of Math.sqrt(2) with a value between 1 and 1.4. 1 is the normal movement, and 1.4 is the slower movement.
LikeLike
I read the diagonal script instructions but when you told me to make a folder, where do I put the folder?
LikeLike