A
anthropus
Guest
I have 2 sprite-objects: the player one and a magic spell one and I want the magic spell sprite-object to
"wrap around" the player.
to accomplish this I want the first few subimages of the magic spell sprite-object to draw behind the player object, and the rest of the magic spell subimages to draw in front of the player, thus creating a 'wrapping around the player' effect
the player object has a depth of 0; it creates the magic spell object; atm the magic spell only draws behind the player.
this code i tried does not work and Im out of ideas (its in the step event of the parent object of the magic spell object).
thanks
"wrap around" the player.
to accomplish this I want the first few subimages of the magic spell sprite-object to draw behind the player object, and the rest of the magic spell subimages to draw in front of the player, thus creating a 'wrapping around the player' effect
the player object has a depth of 0; it creates the magic spell object; atm the magic spell only draws behind the player.
this code i tried does not work and Im out of ideas (its in the step event of the parent object of the magic spell object).
Code:
//change depth of magic sprite to wrap around the caster
if (image_index > 2)
{
depth=20;
}