Object collisions

This forum is currently in read-only mode.
From the Asset Store
Welcome! I-Spy (Hidden objects) is an educational puzzle that is more than just seek-and-find activities.
  • Now I've made my assets , and moving to construct-ing . Before I go further , how do I make collision masks for my character ? That button in the sprite editor doesn't seem to do anything.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • collision masks are currently broken.

  • I don't think "currently broken" is the right term... I'm fairly certain they were never actually implemented. I think it was David who started the work on them, and somewhere along the line the button to use them got left in the image editor.

  • Okay , so ... any other way to help the samurai to cut his enemies ?

    I was thinking of using "is overlapping" as it would be the fastest check.

  • Well, you could always use a dummy sprite. Like you use it for the player itself.

    Create a sprite of the desired shape and spawn it at a certain image point when the player is attacking. Then destroy it when the animation is over. Now you can check for overlap with this sprite.

    I guess that's kind of what you asked for... I'm hoping.

    If not feel free to go more into detail.

  • Custom collision masks haven't been implemented yet, but it is something we plan to do.

    Until then I'd use a dummy sprite.

  • Using a hidden collision object is the right way to go, so your character can still get hit (e.g. from behind) when he is attacking. Create a sprite that mimics the animation of the sword swing, but only contains the blade, call it sword mask and make it hidden.

    Then, when you initiate the sword attack, spawn your sword mask using an image point to line it up correctly. You can set up collision events between the sword mask and members of the enemy family to do damage to the enemies, but you can still have the enemies hurt the samurai if they attack from behind. Then you just need to remove the sword mask when the samurai attack animation finishes.

    Although, I should point out, this is completely untested.

  • Awright... by the time I reach the stage for detecting collisions though , I guess Construct will have that feature. But it'll work for now. All I have to do is set animations to the "dummy" alongwith the character.

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