ActiveAnimations["ufo"].AnimationSize = 200 -- scale animation "ufo" to 200%
I have a similar problem where I preload a couple of characters as soon as the game starts and when those characters appear , the game "lags" until it loads them ... so basically it acts like the pre-loading doesn't work.Maybe load them at game launch?Any way to make sure a character preloads?
For the TechDemo I remember using the preload trick for some of the heavier animations, and it did the job quite well. But curiously here, preloading the animations just prevent them from happening alltogether... I was wondering if it was a bug or if I justed goofed.Preloading doesn't mean they will start as soon as they are done preloading. They just stored permanently into the cache until you manually unload them. To have them play you still need to manually play them or assign a default animation to a scene object via its properties tab. I guess preloading at the beginning of a scene won't work with animations that are supposed to start automatically because you are causing a conflict query between preloading & start animation... a theory at least - I've not had cause to bother using the preload feature.
@Brut69. From what I understood, "at the start of the scene" does not exectute before everything else. But does once everything is "set". That is why you can't use a "preload animation" action for animations that are used as default animation for an object. The game will play the animation before reading the "at the start of the scene". So as Lee stated, preloading your characters at gamelaunch with the " At begin start following action" in the game properties tab should do the trick.
For the TechDemo I remember using the preload trick for some of the heavier animations, and it did the job quite well. But curiously here, preloading the animations just prevent them from happening alltogether... I was wondering if it was a bug or if I justed goofed.Preloading doesn't mean they will start as soon as they are done preloading. They just stored permanently into the cache until you manually unload them. To have them play you still need to manually play them or assign a default animation to a scene object via its properties tab. I guess preloading at the beginning of a scene won't work with animations that are supposed to start automatically because you are causing a conflict query between preloading & start animation... a theory at least - I've not had cause to bother using the preload feature.
@Brut69. From what I understood, "at the start of the scene" does not exectute before everything else. But does once everything is "set". That is why you can't use a "preload animation" action for animations that are used as default animation for an object. The game will play the animation before reading the "at the start of the scene". So as Lee stated, preloading your characters at gamelaunch with the " At begin start following action" in the game properties tab should do the trick.
Preloading doesn't mean they will start as soon as they are done preloading
I have a similar problem where I preload a couple of characters as soon as the game starts and when those characters appear , the game "lags" until it loads them ... so basically it acts like the pre-loading doesn't work.Maybe load them at game launch?Any way to make sure a character preloads?