Character run animation

  • #1, by AkcayKaraazmakWednesday, 28. October, 21:34 3 weeks 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, 14:30 3 weeks 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

    Great Poster

    396 Posts

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

    Great Poster

    440 Posts

  • #4, by MachtnixMonday, 02. November, 18:12 3 weeks 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

    1088 Posts

  • #5, by esmeraldaMonday, 02. November, 20:36 3 weeks 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.

    Great Poster

    396 Posts

  • #6, by AkcayKaraazmakTuesday, 03. November, 19:27 2 weeks 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, 11:28 2 weeks 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
    1

    Thread Captain

    2340 Posts

Write post