TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Bug Archives
→
Archives
→
Old Bugs (1.x/2.x)
→
Collision Crash
Pages:
1
Collision Crash
Incarnin
Posts: 18
August 06, 2013, 09:38:49 am
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
August 06, 2013, 09:41:55 am
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".
https://twitter.com/Rob1221dev
Incarnin
Posts: 18
August 06, 2013, 09:55:38 am
When I put the enemy to normal it doesnt move up and down
Photon
Posts: 2691
August 06, 2013, 02:25:05 pm
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).
http://photongamedev.wordpress.com/
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
August 07, 2013, 03:38:09 am
I added a screenshot, your idea didn't work either.
Photon
Posts: 2691
August 07, 2013, 06:29:10 am
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)?
http://photongamedev.wordpress.com/
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
August 07, 2013, 06:39:05 am
Oh ok, but it still your solution for the movement doesnt work. And yes, the collision is my problem.
Photon
Posts: 2691
August 07, 2013, 08:44:02 am
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 »
http://photongamedev.wordpress.com/
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
August 07, 2013, 09:01:58 am
Here:
Photon
Posts: 2691
August 07, 2013, 09:54:24 am
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.
http://photongamedev.wordpress.com/
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
August 07, 2013, 09:58:59 am
Yup, its set to not effected by gravity :/ Try it yourself, see what happens maybe?
Photon
Posts: 2691
August 07, 2013, 11:03:20 am
Try checking "Change Direction on Collision" if you haven't already. See if that makes a difference.
http://photongamedev.wordpress.com/
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
August 07, 2013, 11:37:41 am
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
August 07, 2013, 01:15:16 pm
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.
http://photongamedev.wordpress.com/
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
September 02, 2013, 05:31:34 pm
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.
Pages:
1