Jump to content

Recommended Posts

This is less code-related and more animation-related.

From what I know, most characters are reskins of the same template, and they use the same set of animations. I would presume Wilbur uses a different set of animations for moving. 

Wilbur also might have a different sprite sheet, but I don't know that much about SW.

Search in wilbur.lua:

inst.components.locomotor:AddSpeedModifier_Additive("WILBUR_WALK", TUNING.WILBUR_WALK_SPEED_PENALTY)

I not fully sure how it works, but think that your solve may be here.
Also i found it in SGwilson.lua. For example:

 

 onupdate = function(inst)
   inst.components.locomotor:RunForward()
     if inst.components.locomotor.timemoving >= TUNING.WILBUR_TIME_TO_RUN and inst:HasTag("monkey") then
         inst.sg:GoToState("run_monkey_start")
     end
   end,

 

Edited by dahl

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...