L
lDashunl
Guest
So i been doing good so far with my platform game and programming it with help from few you tube videos but i need help from a experience programmer cause i got problem with this ability my player have. So here's his ability, he can shoot a ball called teleBall that move towards the mouse but can only go so far till it drop from the gravity and when it land on a object or plat form after it lands the x and y coordinate of the ball is where my player teleportsto (its gonna be sorta like a stealth game) and here's the code i use in the object of the ball and with the collision event of all the wall and platforms in the game for the teleporting:
Now here's the problem the code works and everything, my player actually teleport to the ball but after the player teleport the ball is still there and the player can't move and i tried shooting another teleBall to see if i could teleport to another ball but it seem once i teleport the first time the code stop working afterwards so here's where i need help since i know almost nothing of programming or gml, so is there a code where when my player is overlapping the teleBall, it delete the ball every time after the player teleport to it like some collision checking or some sort and if u can help please paste the code with your responds and if u can give me steps like what event to put it in or what object etc
Code:
//Floor Collision
move_contact_solid(direction,12)vspeed=0
//Teleporting
if instance_exists(obj_teleBall)
{
obj_player.x = obj_teleBall.x
obj_player.y = obj_teleBall.y
}