Hey! I have some issues... the code works like charm! But seems like the image_angle of a regular sprite is not equal to the image_angle of the script.
If the character is sliced into layers as it would be in typical sprite stacking, the whole character should be able to be rotated. Would you be able to elaborate?
For anyone seeing their sprites being stretched, try disabling "Automatically Crop" in your texture page settings... this took me a while to figure out
ERROR in action number 1 of Create Event for object <undefined>:
dcos argument 1 incorrect type (undefined) expecting a Number (YYGR) at gml_GlobalScript_Script1 (line 25) - var _perspectiveFront = dcos(_perspective); ############################################################################################ gml_GlobalScript_Script1 (line 25)
← Return to Gamemaker script
Comments
Log in with itch.io to leave a comment.
TIMBERRR!!
hey its not working i put script in draw event and it doesnt show
I second that.
Hey! I have some issues... the code works like charm! But seems like the image_angle of a regular sprite is not equal to the image_angle of the script.
PD: I Reaaaaallly love your script! THANKS!
If the character is sliced into layers as it would be in typical sprite stacking, the whole character should be able to be rotated. Would you be able to elaborate?
For anyone seeing their sprites being stretched, try disabling "Automatically Crop" in your texture page settings... this took me a while to figure out
having issues as soon as I run the program.
ERROR in
action number 1
of Create Event
for object <undefined>:
dcos argument 1 incorrect type (undefined) expecting a Number (YYGR)
at gml_GlobalScript_Script1 (line 25) - var _perspectiveFront = dcos(_perspective);
############################################################################################
gml_GlobalScript_Script1 (line 25)
How did you implement the script? I.e. Can you copy/paste the line the error (where you called the script) is from?
Nice work on the ‘tilt’ effect, always cool to see more people giving this technique a go