Destroying Actors Outside of the Camera View

I have a game where you're a ship in a giant playing field, and you can move freely and go in any direction, and shoot enemies, but how can I make it so that if you shoot outside of the camera view (the camera follows you as you move around the playing field) that the projectile will be destroyed? I don't want to be able to hit enemies outside of my view.

Having trouble with your game? Sounds like a personal problem.

Comments

  • GS_MasterGS_Master Member Posts: 159
    in the rule that states it to be destroyed also have if self position x is <480 and >0 and so on.

    or an easy method make an actor called screen and make its size 480 by 320 and have it in the middle of the screen and on your destroy rule include if overlap/collide with screen

    I hope that makes sense
Sign In or Register to comment.