Make monsters detect eachother.

0 favourites
  • 6 posts
From the Asset Store
75 creature and animal sounds, including real animals and fantasy creatures.
  • Okay, so. I understand if I had two separate monsters, I could simply do it on collision, that they would each tip their hats, and go their separate ways... Thing is, I want to make it so that ONE monster, and his instanced copies, will bounce off eachother. I've been trying for maybe two hours.

    My theory is something like

    If I hit Otherguy, and Otherguy.ID =/= My.ID and I'm moving this way, move this way instead.

    Thanks in advance!

  • For now, it's not really doable. You will have to wait for families and use a little trick.

    When families will be available, you want test collision between instances of an object type, but between family A and family B, knowing that the object type will belong to both families.

    Anyway, this way you'll be able to have a definitive pick on what instance you're dealing with.

    Not much to be done for now I'm afraid.

  • Yeah, I heard about families and what not, and although I can wait... I can't help but believe there's still a way. There just has to be.

  • Haaa reading again your first post.

    Rebounds_Bullets_Behavior.capx

    Apparently, this works.

  • Aha!!! I knew there was a way! I was thinking bullet! I just didn't try it, thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hmm.. Oddly I can only make it effect one. Like, one will turn when he's hit another guy, but the other guy just keeps going.

    EDIT

    HAHAH! I am a GENIUS! Here's what I did.

    PinkDevil > On Collision with PinkDevil = Subtract 1 from Direction

        System > Every Tick

            PinkDevil > (Direction < 0) > Set Direction to 1

    Works perfectly.

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