I have an enemy object that shoot at the player, however the enemy continues to shoot that the player when he is outside the view port (off screen). What would be the best way to correct this?
enemy shooting at player while off screne
Started by _241189, Mar 22 2012 10:00 PM
3 replies to this topic
#1
Posted 22 March 2012 - 10:00 PM
#2
Posted 22 March 2012 - 10:40 PM
make a hollow box sprite the size of the port. so that any outside fire by enemys will be deleted.I have an enemy object that shoot at the player, however the enemy continues to shoot that the player when he is outside the view port (off screen). What would be the best way to correct this?
and in all the enemy fire objects. just put in there collision event with the box to "instance_destory()"
Edited by mironic, 22 March 2012 - 10:42 PM.
#3
Posted 22 March 2012 - 11:02 PM
thanks for the help!
#4
Posted 25 March 2012 - 09:45 AM
Why so complicated? Just check in the shooting even if the distance is less than XXX.
Edited by DZiW, 25 March 2012 - 09:47 AM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











