J
jobel
Guest
hi, I have a little spaceship that moves around the screen. I'm trying to "pin" a thruster animation to it's rear.
I want to attach spr_thruster to the obj_ship so it looks like part of the ship, so when the ship rotates, the thruster will stay where it should.
I want to always keep it attached because I want it visible while the ship is moving and not visible when the ship stops.
I assume I need to make a obj_thruster? I tried using length_dir and in obj_thruster's step event, but it lagged behind and would not rotate correctly.
Is there any way to make "image points" on the sprite I want to attach it to?
obj_thruster:Step
x = obj_ship.x + lengthdir_x(-5, image_angle);
y = obj_ship.y + lengthdir_y(-5, image_angle);
image_angle = obj_Player.image_angle + 180;
I want to attach spr_thruster to the obj_ship so it looks like part of the ship, so when the ship rotates, the thruster will stay where it should.
I want to always keep it attached because I want it visible while the ship is moving and not visible when the ship stops.
I assume I need to make a obj_thruster? I tried using length_dir and in obj_thruster's step event, but it lagged behind and would not rotate correctly.
Is there any way to make "image points" on the sprite I want to attach it to?
obj_thruster:Step
x = obj_ship.x + lengthdir_x(-5, image_angle);
y = obj_ship.y + lengthdir_y(-5, image_angle);
image_angle = obj_Player.image_angle + 180;