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
→
Scrub wants to know best way to implement differing jump animations.
Pages:
1
Scrub wants to know best way to implement differing jump animations.
HiddenBro
Posts: 11
October 22, 2015, 10:19:52 am
Basically, I have three jump animations.
One when the character jumps to the right.
One when the character jumps to the left.
And one when the player jumps, but doesn't push left nor right.
What would be the best way to implement this?
UnrealCanine
Posts: 244
October 23, 2015, 04:40:31 am
(code to trigger jump animation)
if speed > 0 (or x){
switch animation to jump right
}
else if speed <0 (or -x){
switch animation to jump left
}
else{
switch animation to jump idle
}
Pages:
1