TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Resolved Questions
→
Make a jump before the end of platforms [SOLVED]
Pages:
1
Make a jump before the end of platforms [SOLVED]
MacMowl
Posts: 65
January 22, 2012, 02:33:56 pm
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
January 22, 2012, 02:46:53 pm
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.
https://twitter.com/Rob1221dev
SWATLLAMA
Posts: 1059
January 22, 2012, 07:40:08 pm
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
January 23, 2012, 12:44:10 pm
Thanks for replies.
rob1221: I tried "edge detection" but it seems there is blocks missing.
SWATLLAMA: YES, exactly what I was looking for.
Pages:
1