• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Stuck Objects

A

Amoses

Guest
so I currently have a enemy moving towards that flying guys x,y, but whenever it gets to a certain distance it just gets stuck in place like showed, please help.
 

GMWolf

aka fel666
Hi,

Some more information would help!
If you could provide us with relevant code that would be helpful!

Its hard to tell from just the giff what the issue could be.
 
A

Amoses

Guest
Hi,

Some more information would help!
If you could provide us with relevant code that would be helpful!

Its hard to tell from just the giff what the issue could be.

everything that has to do with the enemy is right here

if (instance_exists(obj_flyingman)){
move_towards_point( obj_flyingman.x, obj_flyingman.y, 3 )
}

this is if they collide
instance_deactivate_object(obj_flyingman)
 

GMWolf

aka fel666
Ah ok,

Seems like the issue could be with the origin of your 'flying man' sprite.
In the sprite properties editor, make sure your origine is set to the center of your sprite!
 
Top