Jump to content
  • 0

transformation code when jumping i did standing tho


Sweets

Question

 

I've added transformation codeing for standing state and walking state and it works. 

 

I don't know we're to add it in the jumping states to make it work can I see anyone's coding.

 

Thanks for helping use noobs

 

;---------------------------------------------------------------------------
; Jump Up
[Statedef 50]
type    = A
physics = A

[State 50, 1]
type = VarSet
trigger1 = Time = 0
sysvar(1) = 0

[State 50, 2]
type = ChangeAnim
trigger1 = Time = 0
value = ifelse((vel x)=0,41,ifelse((vel x)>0, 42, 43))

[State 50, 3]
type = ChangeAnim
trigger1 = Vel y > Const720p(-8)
trigger1 = SelfAnimExist(anim + 3)
trigger1 = anim >=41 && anim <= 43
persistent = 0
value = Anim + 3

;---------------------------------------------------------------------------

 

Im coding tranfromation in this stlye for example

value = ifelse(var(10)=0,20,30) 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...