How do keep from killing all of the same enemy at the same time?

Not favoritedFavorited Favorited 0 favourites
  • 4 posts
From the Asset Store
An educational game for Times Table. An easy to use template for developers to build larger games
  • I cant figure out how to pic UID in Construct 3 so I can stop killing all enemies at the same time.

  • You need to pick enemy instances which you want to kill. There are many ways to do this and picking by UID is rarely necessary.

    Please provide more information of post a screenshot of your code.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • "Bullet on collision with Enemies" picks an instance of Enemies family. But the BulletHitZombie function doesn't know about that. So in this case you need to pass the UID of the of the picked to the function. Create a parameter enemyUID, pass it to the function, and pick an Enemies instance inside the function by UID.

    Another option is to enable "Copy picked" in function properties, then it will automatically pick instances from that main event.

    And the third option is simply move all those actions from the function into the main event - "Bullet on collision with Enemies".

    But, this is important: since your events are picking Enemies family instance, all actions should also apply to Enemies family - not to the Sprite as on your screenshot!

    EDIT: Right, there is a 4th option - use a custom action, it will work very similar to a function with "copy picked".

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