Questions about the solid behavior

0 favourites
  • Solid behavior works alright between different objects. But what about between instances of the same object? Is there a way to do this? I have spent months in figuring out a way. The bounce off objects option in the bullet behavior doesn't look good. They look glitchy in my opinion. Help please? I don't think capx files are needed here.

  • They are still solid and won't go through each other. Why didn't you check it by your own how they behave?

  • Well they dont apparently. You can try it yourself. The player, treats the NPC as a solid object, because they are two different objects. But the NPC passes through another NPC. (they are instances of the same object)

  • Anyone please?

  • Bumping your own posts won't get good responses, you need to wait till someone who has the time out of their own day and tasks has the time to take a look.

  • Sorry man. Wont do again.

  • well , what do you use to move your NPCS ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The Bullet behavior. What would you do if you're making a top down game?

  • Oh , I see ... The Collisions aren't supported by the bullet behavior ...

    Add "Solid" to the NPC behavior list ...

  • Haven't done this myself but if bullet behavior nullifies solid behaviour, you might want to consider a standard movement method and mimic the bullet behaviour in your events. If you just want them to go towards a straight line you can use linear algebra to set their positions.

  • Haven't done this myself but if bullet behavior nullifies solid behaviour, you might want to consider a standard movement method and mimic the bullet behaviour in your events. If you just want them to go towards a straight line you can use linear algebra to set their positions.

    Bullet behavior seems to work together with solid only if between two different objects. They dont work between instances of the same object.

    Here is my capx, and the methods done by Yann to help me out. Got some problems though. I commented it inside. dl.dropbox.com/u/98441819/Construct/Zombieland/zombieland.capx

  • I dont think there is an edit button here so i just made another comment.

    After a bit of testing:

    two instances of the same sprite (with solid behavior only) each controlled by different keys:

    solid does work between two instances. I use bullet behavior for my monsters so they always chase the player. Any ideas how I can mimic this behavior without using bullet behavior?

  • Have your monsters always face towards the position of the player while moving forward. Sprites can use the actions "set angle toward position" and "move forward". Copy the player's x y coordinates for the angle to follow.

  • That worked, but apparently they did overlap again. I dont know why this happens. I only have 2 sprites, one player one enemy. There are two instances of enemy and one player on my layout. player has 8direction behavior while enemy has only solid behavior. But they still overlap.

    Then, I tried putting 8behavior on the enemy. Amazingly, they worked. I can control my player using WASD and the monster follows me and they dont overlap. Only problem now is how to make the arrow keys null when pressed so they wont move. Here's a sample capx.

    dl.dropbox.com/u/98441819/Construct/Zombieland/sample.capx

  • Okay nvm. I fixed it all now, Thanks for all the help!

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