Character run animation

  • #1, by AkcayKaraazmakWednesday, 28. October 2020, 21:34 3 years ago
    Hello guys,

    Can anyone tell me how to make the character run... I made the run animation but where I should put and make it run

    Cheers

    Great Poster

    440 Posts


  • #2, by esmeraldaThursday, 29. October 2020, 14:30 3 years ago
    You could add it as a new outfit and change the walking speed of this outfit to match the running speed. 


    if you want to run when doubleclicking:
    add in the mouse properties for the doubleclicking:
     - change outfit to run
     - wait until character stops
     - change outfit to walk

    Key Killer

    513 Posts

  • #3, by AkcayKaraazmakFriday, 30. October 2020, 17:07 3 years ago
    Thank you so much Esmeralda! I ll try it

    Great Poster

    440 Posts

  • #4, by MachtnixMonday, 02. November 2020, 18:12 3 years ago
    On every double click you have to request if the character is still running or not, I think. So you can start with double click and end with double click. Otherwise the hero runs until he stops. 

    Thread Captain

    1097 Posts

  • #5, by esmeraldaMonday, 02. November 2020, 20:36 3 years ago
    Well... the character will run to the point where you doubleclicked and stop there. Isn't that what was intended?
    But you are right, if you singelclick somewhere else while he is running, he will continue running to the new position and change to walk when he stops there.
    If you don't want that, you can add a "change outfit to 'walk'"-action part to the properties of the leftclick in the mouse properties area. I was worried at first that this would cancel the left-click-command, but it worked fine in a little test I did just now.

    Key Killer

    513 Posts

  • #6, by AkcayKaraazmakTuesday, 03. November 2020, 19:27 3 years ago
    Outfit solution is not effective for me because the character is 3d and changing the outfit takes a bit time so it doenst look seamlessly when changing between outfis in the same scene.

    And you guys know how to scale down the outfit by code in Executive Script. I have shadow 2d image as outfit for the character shadow but its too big for the character in a scene so I should scale down the shadow.  Any idea friends smile

    p.s I wrote these but doesnt work;

    local outfit_shadow = Characters.Char_3d_shadow.CharacterCurrentOutfit
    outfit_shadow.OutfitModelScaleFactor = 5

    Cheers

    Great Poster

    440 Posts

  • #7, by sebastianFriday, 06. November 2020, 11:28 3 years ago
    Outfit solution is not effective for me because the character is 3d and changing the outfit takes a bit time so it doenst look seamlessly when changing between outfis in the same scene.

    And you guys know how to scale down the outfit by code in Executive Script. I have shadow 2d image as outfit for the character shadow but its too big for the character in a scene so I should scale down the shadow.  Any idea friends smile

    p.s I wrote these but doesnt work;

    local outfit_shadow = Characters.Char_3d_shadow.CharacterCurrentOutfit
    outfit_shadow.OutfitModelScaleFactor = 5

    Cheers

    try this:
    local outfit_shadow = Characters.Char_3d_shadow.CurrentOutfit.ModelScaleFactor = 5

    Thread Captain

    2346 Posts