D
Darren
Guest
I'm stacking sprites to make a fake 3d like so
Create event:
image_speed = 0;
draw event:
for (var i = 0; i < image_number; i++)
{
draw_sprite_ext(sprite_index, i, x, y - i, image_xscale, image_yscale, image_angle, c_white, image_alpha);
}
when I rotate them by image angle they have an awesome fake 3d effect, but I want to adjust the view angle and have the sprites adjust accordingly (if I do image angle they all pivot around their own axis, so I need to change the view angle instead, the objects are in the same place but they need to look different depending on where the camera is like 3d) how would I adjust the way the sprites are stacked to draw according to the view_angle?
Create event:
image_speed = 0;
draw event:
for (var i = 0; i < image_number; i++)
{
draw_sprite_ext(sprite_index, i, x, y - i, image_xscale, image_yscale, image_angle, c_white, image_alpha);
}
when I rotate them by image angle they have an awesome fake 3d effect, but I want to adjust the view angle and have the sprites adjust accordingly (if I do image angle they all pivot around their own axis, so I need to change the view angle instead, the objects are in the same place but they need to look different depending on where the camera is like 3d) how would I adjust the way the sprites are stacked to draw according to the view_angle?