B
Beersy
Guest
Im trying to have an enemy AI drop a bomb when its y is the same as the players y.
i would assume it would be in step event as:
if(y=obj_player.y)
{
action_create_object(obj_bomb,x,y)
}
but this line of code i think works if the y is literally where the players y is.
how do i code where the Y line is the same as the players Y line...i hope im asking it the right way?
i would assume it would be in step event as:
if(y=obj_player.y)
{
action_create_object(obj_bomb,x,y)
}
but this line of code i think works if the y is literally where the players y is.
how do i code where the Y line is the same as the players Y line...i hope im asking it the right way?