generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Is there a way to slow animations down?

Previous Thread :: Next Thread 
TheDeveloperYoshi is online. TheDeveloperYoshi
Joined: 12 Aug 2015
Total Posts: 795
08 Aug 2017 03:02 PM
Say you made your player bigger with the R-15 body scales, your animations would be very fast. Is there a way to slow them down? Thanks.


R+://899893970 "I'm just another Yoshi..." [ATR]
Report Abuse
HeIix is not online. HeIix
Joined: 19 Jan 2013
Total Posts: 253
08 Aug 2017 03:04 PM
AnimationTracks have the property :AdjustSpeed

http://wiki.roblox.com/index.php?title=API:Class/AnimationTrack/AdjustSpeed


‍ ‍ ‍                                            ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍
Report Abuse
TheDeveloperYoshi is online. TheDeveloperYoshi
Joined: 12 Aug 2015
Total Posts: 795
08 Aug 2017 03:12 PM
How would I use these lines?

void AdjustSpeed (
float speed = 1
)


R+://899893970 "I'm just another Yoshi..." [ATR]
Report Abuse
HeIix is not online. HeIix
Joined: 19 Jan 2013
Total Posts: 253
08 Aug 2017 03:14 PM
Once you have the animation loaded into the animationtrack, just do

AnimationTrack:AdjustSpeed(speedhere)

of course, replace AnimationTrack with the name of your animationtrack





‍ ‍ ‍                                            ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍
Report Abuse
TheDeveloperYoshi is online. TheDeveloperYoshi
Joined: 12 Aug 2015
Total Posts: 795
08 Aug 2017 03:21 PM
So, I did this.

WalkAnim:AdjustSpeed(10)

10 to see if it would work.

But, it still doesn't work, am I missing something?


R+://899893970 "I'm just another Yoshi..." [ATR]
Report Abuse
HeIix is not online. HeIix
Joined: 19 Jan 2013
Total Posts: 253
08 Aug 2017 03:23 PM
Did you define an animation and then load it onto the animationtrack beforehand?


‍ ‍ ‍                                            ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍
Report Abuse
TheDeveloperYoshi is online. TheDeveloperYoshi
Joined: 12 Aug 2015
Total Posts: 795
08 Aug 2017 03:26 PM
local WalkAnim = script.Parent

WalkAnim:AdjustSpeed(10)



Like this?


R+://899893970 "I'm just another Yoshi..." [ATR]
Report Abuse
HeIix is not online. HeIix
Joined: 19 Jan 2013
Total Posts: 253
08 Aug 2017 04:47 PM
No, to load an animation you have to do something like this

local animation = Instance.new("Animation")
animation.AnimationId = "insertanimationidhere"

local animationTrack = player.Character.Humanoid:LoadAnimation(animation)
animationTrack:AdjustSpeed(speedhere)

animationTrack:Play()


‍ ‍ ‍                                            ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍
Report Abuse
TheDeveloperYoshi is online. TheDeveloperYoshi
Joined: 12 Aug 2015
Total Posts: 795
08 Aug 2017 04:48 PM
So, I cant modify a walk animation without making a new one?

Not like animating a new one.



R+://899893970 "I'm just another Yoshi..." [ATR]
Report Abuse
HeIix is not online. HeIix
Joined: 19 Jan 2013
Total Posts: 253
08 Aug 2017 04:54 PM
Well, you could modify the default walk animation, but you'd have to edit roblox's basic animate script for that


‍ ‍ ‍                                            ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍
Report Abuse
TheDeveloperYoshi is online. TheDeveloperYoshi
Joined: 12 Aug 2015
Total Posts: 795
08 Aug 2017 04:55 PM
k


R+://899893970 "I'm just another Yoshi..." [ATR]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image