perform action if in view

Posted by mazimadu on Dec. 7, 2006, 5:22 a.m.

I am making a platform game and I want enemies to pefrom a certain action (any action) only when they are visible on the view. Can some one send me the code foe that.

Also I want my shooting baddies to shoot the player only when he is about 200 pixels away on both sides. How is that done.

NOTE: Even though I know I'm not suppose to use the blog to brag, This is a powerful way to get people to help rather than using the forum

Comments

Arcalyth 17 years, 5 months ago

Deactivate instances that are outside of the view, and activate instances that are inside the view.

DFortun81 17 years, 5 months ago

Yup. That should do it Arc.

mazimadu 17 years, 5 months ago

Thanks, I really needed it