TheNegroShoddy
Member
I'm working on an RPG similar to old school Dragon Quest games and I want to draw an effect animation whenever the player uses a skill or simply attacks on top of the enemy sprite. I want it to be drawn in the center of where the enemy sprite is drawn. I haven't centered any of my sprites (the origin is still 0,0).
I would think that something like this would work, but it doesn't:
I would think that something like this would work, but it doesn't:
Code:
spr_width = sprite_get_width( enemy_spr);
spr_height = sprite_get_height( enemy_spr);
draw_sprite( eff_spr, subimg, enemy_xx + ( spr_width / 2 ), enemy_yy + ( spr_height / 2 ) );