my way of adding video to your games quick and easy
THINGTHING
Member Posts: 84
1.make a new scene called video
2.first create a actor the size that you want to watch you
3.make an animation with a good animator(i use flash profesional CS5 )
4.on your actor make a animation behavior and put your animation in the animation behavoir
5.record how long your animation is and set it , after__ seconds change to next scene
2.first create a actor the size that you want to watch you
3.make an animation with a good animator(i use flash profesional CS5 )
4.on your actor make a animation behavior and put your animation in the animation behavoir
5.record how long your animation is and set it , after__ seconds change to next scene
Comments
just check for last image in animation then change scenes
a 320 x 480 png will be taking up over 600kb when uncompressed in ram. That is each frame. So at movie rates of 24 frames per second. You will reach 14mb in 1 second, therefore lasting all of about 3 seconds before an ipod touch 2g will crash. Most likely it would actually crash just loading the images in.
What if.. instead of using the animation behavior you used a global variable called "animationFrame" (int) and a timer that spawned an Actor called "AnimationWindow"
The rules in the AnimationWindow would be
Change Attribute self.image = game.animationFrame..".png"
Timer After 1/24s
Destroy self
The idea here is that creation and destruction of an actor (although heavy) may actually clean up the ram.
Just a guess... i just woke up
but one warning i spent an hour on flash animating and it turns out it doesn't work
2) Why destroy the actor? From what I've seen of GameSalad, it generally doesn't release memory once it starts using it. Destroying and spawning an actor every 1/24 of a second will likely lead to poor playback performance... no?
3) October... still no GameSalad update.
4) Why 24 frames per second? I find that 15 frames per second is fine for cartoon like animation.
It releases memory, just not instantly. The game I'm working on spawns and destroys actors constantly. Ram usage goes up at first but then settles down after a bit.
game.animationFrame..".png"