1
Resolved Questions / [solved] Player actor prevents platform from "Sliding"
« on: June 13, 2012, 10:25:00 am »
Hi everyone,
Stencylpedia offers some "platforming challenges" that are stumping me for now; I'm thus seeking some help!
I have a platform that should rise to a desired y-value when the player actor lands on top the platform, carrying the player actor up with it. My logic so far looks like this:
In the screenshot above, y to offset and final y are attributes specific to this "rising platform" behavior I'm making.
This sort of works. The player actor will land on top of the platform and nothing will immediately happen. I've noted, of course, that if the player actor then jumps off the platform (whether in the air immediately above it, or off it altogether), the platform will start to rise.
Does this have something to do with the weight of the player actor effectively holding the platform down? How should this sort of behavior be handled?
If it's worth noting, my player actor uses the Jump and Run Behavior that comes with Stencyl now.
Thanks!
Stencylpedia offers some "platforming challenges" that are stumping me for now; I'm thus seeking some help!
I have a platform that should rise to a desired y-value when the player actor lands on top the platform, carrying the player actor up with it. My logic so far looks like this:
In the screenshot above, y to offset and final y are attributes specific to this "rising platform" behavior I'm making.
This sort of works. The player actor will land on top of the platform and nothing will immediately happen. I've noted, of course, that if the player actor then jumps off the platform (whether in the air immediately above it, or off it altogether), the platform will start to rise.
Does this have something to do with the weight of the player actor effectively holding the platform down? How should this sort of behavior be handled?
If it's worth noting, my player actor uses the Jump and Run Behavior that comes with Stencyl now.
Thanks!