#Im trying to make the enemy walk to the player

26 messages · Page 1 of 1 (latest)

neat surge
#

but the enemy keeps going to the down right of the player
im very new to gamemaker so i dont know if the code is appropriate for this scenario.

Here is the jank code: move_towards_point(oplayer.x, oplayer.y, 3)

errant hatch
#

where do you mean by "down right" of the player?

and could you show the player sprite please?

neat surge
#

ok

errant hatch
#

show the full sprite editor page please

#

i'm looking for a little crosshair

neat surge
#

oh the collision thing

errant hatch
#

yes

neat surge
errant hatch
#

yes that's good

#

also just going forward...make a habit to not super crop your screenshot, code or otherwise

errant hatch
#

so

that's a good spot for that crosshair. where do you mean by down right

errant hatch
neat surge
errant hatch
#

can i see the enemy please then

#

the other thing

neat surge
errant hatch
#

and you don't need to ping me with every reply

neat surge
errant hatch
#

ok that is fine too

neat surge
#

oh wait

#

i just fixed it by moving the collision chrosshair a bit down

#

i thought it had to do with the x coordinates of the player

errant hatch
#

the two crosshairs of the player and enemy should line up

#

that's where the x,y is calculated