M
Maxandkon
Guest
now I use this command in this way
if !collision_line (enemy_obj.x, enemy_obj.y, object_player.x, object_player.y, object_wall, true, false) {
further a long code so that it follows the player
}
it only works on 1 enemy, only 1 enemy reacts to me, and thus, when he sees me, he launches a function for everyone, but can it be done separately for each and and if this particular enemy saw me, only he reacted to me, or should they be created as separate objects and each should be assigned such a function?
if !collision_line (enemy_obj.x, enemy_obj.y, object_player.x, object_player.y, object_wall, true, false) {
further a long code so that it follows the player
}
it only works on 1 enemy, only 1 enemy reacts to me, and thus, when he sees me, he launches a function for everyone, but can it be done separately for each and and if this particular enemy saw me, only he reacted to me, or should they be created as separate objects and each should be assigned such a function?