How to fix my enemy movement bounds?

0 favourites
  • 3 posts
From the Asset Store
Fly Bound
$2.49 USD
Design for game, asset for game, game kit, UI design, completed design for game FLY BOUND
  • So I'm a new user to Construct and I am currently making my first game. I am having problems with the goblin enemies in my game to where they all move together. There are blocks that turn the enemy the other way once they hit them, however it moves all the enemies in the opposite direction once only one enemies does so. I'll attach the project and a video to better explain it.

    (Video of Bug)

    drive.google.com/file/d/1gDp81SF9DGXnSRx2XfMABUnrsyEbgeR4/view (Link to Project)

    I'd appreciate if anyone could explain what I could do here to fix this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's about picking. Here it's better to use just use the goblin, not a separate tracker sprite. The reason it moves all goblins is because when you say tracker overlap block, move goblin, the tracker does not relate to a goblin, it picks all goblins.

    There is something called a container, you can put tracker and goblin in a container and when you pick the tracker then it knows the related goblin. They are created together and automatically relate to each other.

    I know in your mind though when you said for each goblin create a tracker and they seem related but actually they are not, unless you use container like above, or pick in another way like the tracker and goblin have matching instance variable IDs.

    I would still start with using only the goblin object in the overlap condition to keep it simple and not this tracker object.

  • Ah, it worked. Thanks for teaching me that I'll use that for my next enemy type!

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