[Solved] Conditional Collision? Or Toggling Collision?

connormcguire

  • Posts: 3
I've been tearing my hair out trying to figure this out. I feel like I'm missing something here.

Is it possible to create an actor(or platform) that doesn't collide if it's hit from the bottom? I'm trying to make a Castlevania style platform that works like the platforms in this video from 29 seconds on:

http://www.youtube.com/watch?v=v6KkNzK8n9g&feature=related

The player passes through them if they are traveling upwards, but then collides normally otherwise.

Anybody?


« Last Edit: November 03, 2011, 03:31:22 pm by connormcguire »

Alexin

  • *
  • Posts: 3132
Several users have made one-way platforms. The engine doesn't support it natively, but they use a clever trick with animations.

The gist of it to switch to an animation with a sensor shape, when the character is jumping, and another with a solid shape when it's falling down.
"Find the fun"
alexin@stencyl.com

connormcguire

  • Posts: 3
AH HA!

Like stand on ladder! I knew I was missing something!

Thanks so much.

popsmike

  • Posts: 1
hi im totally new to this sort of thing but got good understanding of whats needed.

I was wondering prety much the same thing for clouds etc. but dont have a clue where to start so anyone with any tutorials or similar for it.

captaincomic

  • *
  • Posts: 6109
Take a look at the "One Way Platform"-behavior on StencylForge for a working example.