Collision doesn't always work

0 favourites
  • 9 posts
From the Asset Store
This Girls Game allows young fashionistas to develop their taste and skills as a fashion designer.
  • Hello everyone,

    I'm new to this forum and to making games with Construct 2, so let me apologize first for when this topic is in the wrong place.

    I have made a simple platform game for my boyfriend and I've got everything in working order so far. I want the game to end when Mario (yeah, we like Super Mario) hits the star, but sometimes this collision doesn't always work.

    The conditions stay the same, but sometimes I'm able to hit the star and end the game and sometimes I'm not. I just can't figure out what's going wrong there.

    Please, if someone could take a look at and help me out. I'd really appreciate the help. (Other tips are welcome too, but please bare in mind that I'm still working on it and that the game is only for me and my boyfriend, so it could look a little bit lame, I guess.)

  • You should be able to attach a .capx as you don't have enough rep to post links yet.

    One thing to check is the collision polygons.

  • You can upload files but can't post links.

  • Thanks guys, I think I've uploaded it now?

    It's the first game I've made, so I can imagine if I have done some things the wrong way. But it's about the star at the end.

    Well, the collision polygon solved another thing I didn't really know how to fix, but the collision problem still appears.

  • I don't see any problem, every time i collide with the star correctly.

    To be more sure, make the star collision polygon as square.

    And you don't need 3 different layout's to show messages and buttons.

    Easily make 3 groups and make it deactivate and invisible, one for restart the game and one for you win... etc.

    And when you want to show the message set it to visible and activate.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for trying!

    I've made a square from the collision polygon, but it still appears sometimes, mostly when I've got Yoshi. I've made a screencap. I have tried setting one of them in front of the other, but that seems to have no effect either.

    I found out about the layout thing you explained, after I made it, so I decided to leave it the way I made it.

  • I hope I'm not being to impatient, but is there someone who was able to recreate the same problem as me and who'll know a solution?

  • You only have star collision conditions for when Up <= 0 or Up > 1. What about when Up == 1?

    In other words, if you miss one mushroom then Up will equal 1 and colliding with the star won't do anything.

  • Oh, you're totally right! It was that simple. I completely overlooked that. Thank you so much! I've fixed it. And now I can only hope my boyfriend will like this as a birthday present.

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