T
teamrocketboyz
Guest
Hello all, im currently working on a project and i need a little help regarding an object that i want to move with the player and stay in the exact same position.
so far i have an object and upon the create event i have added
this creates the gun exactly in the center of the enemy sprite and this is fine.
within the gun object i have added
this makes the gun follow the enemy perfectly. the problem is that if i add another o_enemy then that enemy doesnt have a gun i think its snapping 2 guns to the first enemy. how can i make it so that it only snaps to the object that created it?
so far i have an object and upon the create event i have added
Code:
instance_create_layer(x,y,"instances_turrets",o_gun)
within the gun object i have added
Code:
move_snap(o_enemy.x,o_enemy.y)