Make a jump before the end of platforms [SOLVED]

MacMowl

  • Posts: 65
Hello,

I have an actor moving left to right and before the end of a platform, I want it automatically jumps.
I have differents sizes of platforms and I have absolutely no idea how I can do that.

Any suggestion?

« Last Edit: January 23, 2012, 12:44:26 pm by MacMowl »

rob1221

  • *
  • Posts: 9473
That might be a bit tricky to do especially if the jumps are different heights.  You'll have to detect when the actor is on the edge of a platform to determine when to jump.  I think there's a behavior on StencylForge called "edge detection" that may help.  If the jumps are different heights then regions might help to set the force for each jump.

SWATLLAMA

  • Posts: 1059
You could maybe use a jumppad. I've a behavior on forge for it, but you'd need a jumppad actor.
Hail The Llama
http://www.kongregate.com/accounts/lSWATLLAMA
"Play the games" ~ The Grand Llama

It's my life goal to rickroll as many people as possible

MacMowl

  • Posts: 65
Thanks for replies.

rob1221: I tried "edge detection" but it seems there is blocks missing.

SWATLLAMA: YES, exactly what I was looking for.