Jump through platform
Is there an easy way to make the player jump through platform?
-
Yes, you can tweak collisions.
-
Hi,
You can make any object non collidable in its tweak settings
John -
Yes, I know, I have tried. I can turn off the collision, but should I use Trigger or Laser Scope to detect the platform and turn off the Collider. The player needs to jump through the platform and then stand on the top of the platform.
-
You want the platform to be collidable from above but not below?
Probably use some logic that switches the platform's collision detection depending on the upward velocity of the player character (for example).
I.e. if the player is moving upwards, transmit a 'no collide' signal to any appropriate platforms; when the player is moving downwards or staying level, change that to a 'collide' signal. -
You could turn collision of on jump assent and peak.
And in any other situation it would be automatically collidable of course. -
It looks like it works so far. But it doesn't work if I place the platform too close to player. But that's ok, I guess. ?
-
Can't you use a trigger zone to detect a tag in the character's feet for example, so only when the player is above the platform it is collidable? Or the other way around, make it only not collidable when the player is under the platform. And adjust size and position to make it so it is reliable.
-
I have tested it a lot now and it works fine. I uploaded it so other Dreamers can try it, and maybe find it useful. ?
Search for PassThrough and you find it.
Thank you for all the help and suggestions! ? -
I found a bug in the jump through logic. The problem is, if I have physical objects like enemies or player 2,etc, they will just fall through the platforms, since I disable the Collider of the platforms when the player jumps and enable it again when he falls.
I also tried to disable "Friend" in collision labels, but that didn't work properly either.
I could try to disable the Collider of the player itself, but I'm afraid that can cause the player to fall through the platforms also.
Any suggestions? -
I tried to disable the "Friend" and also "Ulabelled" in collision labels on the player, not on the platforms. And it seems like it works fine. I didn't disable the Collider on the player. ?
الرجاء تسجيل الدخول لترك تعليق.