Collision Crash

Incarnin

  • Posts: 18
I have an actor, enemy,  moving up and down like a jumping motion. Then Ive got my main character who can walk and do normal stuff. Whenever my main character walks underneath the enemy and the enemy comes down and collides with him, adobe flash player crashes. If you could help me with this or its just a bug that would be nice :) Edit: Here's a screenshot showing what it looks like when I crash

« Last Edit: August 07, 2013, 03:37:46 am by Incarnin »

rob1221

  • *
  • Posts: 9473
I'm guessing the enemy is set to "cannot be pushed" and is crushing the player.  If that is the case, set the enemy to "normal".

Incarnin

  • Posts: 18
When I put the enemy to normal it doesnt move up and down

Photon

  • Posts: 2691
Check your forces, such as gravity, to make sure nothing is hindering it (you can set it so the enemy itself is not affected by gravity).
Do NOT PM me your questions, because I likely will not respond. If I have replied to your question on the forum, keep using that topic. Thanks!

Incarnin

  • Posts: 18
I added a screenshot, your idea didn't work either.

Photon

  • Posts: 2691
First... I don't see a screenshot. (EDIT: Oh, you added it up top to the original post)

Second, which isn't working right? The collision issue or the enemy moving issue (my previous solution was for the movement issue, in case I wasn't clear)?
Do NOT PM me your questions, because I likely will not respond. If I have replied to your question on the forum, keep using that topic. Thanks!

Incarnin

  • Posts: 18
Oh ok, but it still your solution for the movement doesnt work. And yes, the collision is my problem.

Photon

  • Posts: 2691
This most likely is the Box2D collision bug. Typically, this is what happens when you squish an actor between an unpushable actor and another unpushable actor or tile. I think if we can fix the movement issue of your enemy and leave it at "normal", that should fix the problem. Could you post the movement behavior for your enemy?

« Last Edit: August 07, 2013, 09:53:14 am by Photon »
Do NOT PM me your questions, because I likely will not respond. If I have replied to your question on the forum, keep using that topic. Thanks!


Photon

  • Posts: 2691
Are you sure the actor is set to not be affected by gravity? There is a setting for that below the part where you select "Cannot Be Pushed" or "Normal". Otherwise, there is no apparent reason as to why this would not work from my prespective.

Also, I misspoke on my last post. I needed to say leave it at "normal". I edited the post appropriately.
Do NOT PM me your questions, because I likely will not respond. If I have replied to your question on the forum, keep using that topic. Thanks!

Incarnin

  • Posts: 18
Yup, its set to not effected by gravity :/ Try it yourself, see what happens maybe?

Photon

  • Posts: 2691
Try checking "Change Direction on Collision" if you haven't already. See if that makes a difference.
Do NOT PM me your questions, because I likely will not respond. If I have replied to your question on the forum, keep using that topic. Thanks!

Incarnin

  • Posts: 18
Nope. Im thinking its just an adobe flash player bug now. If you do find anything that could help, tell me, otherwise thanks for the help ;)

Photon

  • Posts: 2691
Based on your description, I'm fairly certain its the Box2D bug. It's probably something simple that I just haven't thought of...

As a last resort, you could export the project (NOT into a game) and post it here for someone to look at.
Do NOT PM me your questions, because I likely will not respond. If I have replied to your question on the forum, keep using that topic. Thanks!

gamegirlxl

  • Posts: 713
You might want to consider working around Box2D using a sensor.  With a bit of work, you can "detect" collisions without getting stuck.

If you want to stay with what you have, try debugging the game by disabling things.