F
fxokz
Guest
Once again i have a problem with lengthdir functions. I cant seem to understand the way they work. Im trying to spawn bullets at a particular part of a sprite even if it is rotating. I cant seem to get it right though.. Im using this code which is about as flawed as it gets.
i dont know what im doing wrong..
Code:
a = instance_create(x-lengthdir_x(21, image_angle) , y-lengthdir_y(21, image_angle)+20, obj_bullet_enemy);