Hey everyone, I have this code implement from a tutorial I did. I have a z-axis in my game, and a jump command. When I jump, my shadow stays the same obviously.
I am trying to work out an equation or simple solution to have it somehow multiply,divide, etc. by my zsp (my jump height on the z-axis) and increment by 0.1 depending on my height. I've almost successfully done it with some old code, but I can't figure it out. Hope this made sense to everyone.
Here's my current code for my shadows:
//variables for shadows
var sx = 25;
var sy = 15;
//This sets fog to disable,white is default.
Here's the old way I did it, that almost worked:
draw_sprite_ext(sprite_index,image_index,x,y,image_xscale/(2 - (zsp -1) * 0.1),image_yscale/(2 - (zsp -1) * 0.1),
Thanks in advance everyone!