Enemy off screen indicator, help!

thelogobarthelogobar Member Posts: 93
edited May 2012 in Working with GS (Mac)
Just watched @tshirtbooth's YouTube video for an off screen indicator to show the position of an actor, it works splendidly. But the video is designed for a single actor, I wanted to let a player know when an enemy was about to appear on the screen by using an marker. But the marker would change depending on the enemy type.

I tried using the same method as in the video, with individual attributes for each actor. Problem is when I have two of the same actor spawning at the same time you only see one indicator.

Has anyone got any ideas how I could do this? Thanks.

Best Answer

  • MotherHooseMotherHoose Posts: 2,456
    Accepted Answer
    @ thelogobar … try recycling the enemies … see @tshirtbooth video recycling bullets

    add an enemyActor to the scene … you can change the name to the type of enemy

    then add an indicatorActor … color; unlock; and use the Current Scene in the ExpressionEditor
    to constrain its X to the enemy X … and colorAlpha changes should work the same

    fun to play around with lots of random attributes for the enemy … ever time you move to the top offScreen location!

    image MH
Sign In or Register to comment.