T
TTJ
Guest
Hi,
I've been wondering how to do this.
I got a gun which essentially is the player and a body that follows the player in the end step.
Which works fine with only one player. But i got four. I initially thought i could store the instance_id in the gun and pass it onto the body when it is created inside of the gun. Then in the step event i could follow only the instance which has the correct ID. But it seems i can't use instance_id in that manner.
Any thoughts?
I've been wondering how to do this.
I got a gun which essentially is the player and a body that follows the player in the end step.
Code:
if instance_exists(obj_Player){
x = obj_Player.x;
y = obj_Player.y;
}
Any thoughts?