2 sprites of same family collide smaller one destroyed

0 favourites
  • 3 posts
From the Asset Store
A collection of various zombie characters sprites for creating a 2D platformer or sidescroller game
  • Okay, I've searched around and am really struggling with this game. I am making a game where you are a caveman and you can ride a smaller dinosaur. The dinosaur can eat eggs to get bigger, then can eat other dinosaurs if it's bigger than them.

    I want the other dinosaur drones to be able to eat each other too. How can I have 2 dinosaurs of the same family collide, then the smaller one gets eaten, and the bigger one gets a little bigger? Is this possible, or do I need to do it all individually and write a eating script for each individual dinosaur?

    Thanks for any help you can give.

  • Which part are you struggling on?

    I'm not 100% sure of details about objects/families colliding with one of their own but have seen several tutorials/threads on it.... here is one

    Once you get the 'picking' sorted out it should be straightforward, right?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Give them family instance variables where 1 is small, 2 is bigger, 3 is biggest or something. When they collide compare the variables, whichever is bigger destroys the other one.

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