weird physics, please help

Hey all,
So this is a fun problem that I have been banging my head against the wall for a week trying to solve. I finally give up. Here is what is happening. I am trying to make a doodlejump clone and instead of moving a solid branch from nowhere under my hero, I made each platform a sensor. When the hero passes through it and lands the sensor = false upon landing, when the hero passes through from below the platform isSensor = true. Then I tried making the hero a sensor, when he lands on the platform, the hero.issensor = false, when passing through from below it is true, both ways.

The strange part is when the hero lands, he shoots off in the x direction, the same every time. I printed it and the x velocity is -1800 and I can’t seem to reset it or anything. Bounce is 0, friction is 0.1. It is strange it happens after a couple of platforms, and almost always the same. Any ideas? Please help, must finish game, or enter into the darkside of the force. Thanks in advance.
Sincerely,
SM

[import]uid: 79586 topic_id: 30152 reply_id: 330152[/import]

anyone? [import]uid: 79586 topic_id: 30152 reply_id: 120902[/import]

I’ve seen people use this method before without issue - I think someone may have posted a sample at some point, even. Could you paste plug and play demo of the problem, perhaps? [import]uid: 52491 topic_id: 30152 reply_id: 120966[/import]

I know that there are “one way platforms” discussions in the forums, maybe even in the code exchange. Search around there; if you can’t find anything, let me know and maybe I can suggest some alternative methods.

Brent [import]uid: 9747 topic_id: 30152 reply_id: 120978[/import]

anyone? [import]uid: 79586 topic_id: 30152 reply_id: 120902[/import]

I’ve seen people use this method before without issue - I think someone may have posted a sample at some point, even. Could you paste plug and play demo of the problem, perhaps? [import]uid: 52491 topic_id: 30152 reply_id: 120966[/import]

I know that there are “one way platforms” discussions in the forums, maybe even in the code exchange. Search around there; if you can’t find anything, let me know and maybe I can suggest some alternative methods.

Brent [import]uid: 9747 topic_id: 30152 reply_id: 120978[/import]

sure, how do I paste plug and play code? I haven’t done that before. [import]uid: 79586 topic_id: 30152 reply_id: 121741[/import]

Sorry, that should have read “post” not “paste”-
“Plug and play” is code we can just copy, paste, save and run - so it doesn’t need images and instead uses newRect/newCircle/etc - make sense? :slight_smile: [import]uid: 52491 topic_id: 30152 reply_id: 121768[/import]

sure, how do I paste plug and play code? I haven’t done that before. [import]uid: 79586 topic_id: 30152 reply_id: 121741[/import]

Sorry, that should have read “post” not “paste”-
“Plug and play” is code we can just copy, paste, save and run - so it doesn’t need images and instead uses newRect/newCircle/etc - make sense? :slight_smile: [import]uid: 52491 topic_id: 30152 reply_id: 121768[/import]