How do I get enemy AI to mirror independently

0 favourites
  • 7 posts
From the Asset Store
Pixel Enemies for SHMUP consists of 45 enemy ship sprites to be used in your game.
  • I followed the beginner platform tutorial and created a simple platformer game. I set my zombie enemy to set position to a box item, per the instructions. The enemy and box instances go back and forth between invisible trigger items and move back and forth just fine. The only problem is, no matter what I try, I can't get the actual enemy sprite to mirror back and forth independently. When I set the enemy to mirror, all instances mirror instead of one at a time.

    I searched through the forums and topics seemed to center on getting the player to mirror. Can anyone help?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You need to specify a zombie instance, probably using an angle of motion check, or with an expression in one of its behaviors (Don't know if you are using a platformer on your AI).

    PS

    This post is to start a conversation, because I don't think I can help you just with what you gave me! XD

  • Here's how the event sheet looks.

  • You need to do a two things,

    • Put the Zombie and ZombieBox into a container (See: https://www.scirra.com/manual/150/containers)
    • Add a for each ZombieBox condition to both your direction="Left" and direction="Right", that will make things work more smoothly.
  • I don't know why that list broke my bad

  • Thank you so much! That fixed it.

    If you don't mind, what's the logic difference that made it work? I can see the need to somehow target an instance of zombie box and zombie. Does the container allow them to work together?

  • A container groups things together so that when an event effects one, the other of objects (in its container) get brought into context. Read the manual post I attached in my second response for more, I'm not the best at explaining

    Also I'm glad I could help!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)