Cinema image and text switching efficiency
Fodder76
Member Posts: 154
Hey there helpful friends, another question for you.
So I'm making a game that has some cinemas. Its got a lot of change image, interpolate, display text, and most/worst of all, Timers. Lots of Timers. I read somewhere that Timers are real memory hogs with GameSalad, so I'm concerned about the number of them that I've been using, and I'm wondering if there is a better way.
My flow has been looking like this
Timer = After X seconds
Change Image
Interpolate = self.alpha = 1
Timer = After X seconds
Timer = For X seconds
Display Text
Timer After X seconds
Interpolate = Self.alpha = 0
etc etc
The above is a simple example for a single frame of a cinema, so repeat that over and over again in a single Scene.
Worse, I have to add up the time each frame takes, then start the next frame at the beginning of that point.
Anyway, it just seems really inefficient, AND as usual I'm worried about keeping the performance up so I was wondering if there is a better way that I'm not aware of. Thanks!
Chris
So I'm making a game that has some cinemas. Its got a lot of change image, interpolate, display text, and most/worst of all, Timers. Lots of Timers. I read somewhere that Timers are real memory hogs with GameSalad, so I'm concerned about the number of them that I've been using, and I'm wondering if there is a better way.
My flow has been looking like this
Timer = After X seconds
Change Image
Interpolate = self.alpha = 1
Timer = After X seconds
Timer = For X seconds
Display Text
Timer After X seconds
Interpolate = Self.alpha = 0
etc etc
The above is a simple example for a single frame of a cinema, so repeat that over and over again in a single Scene.
Worse, I have to add up the time each frame takes, then start the next frame at the beginning of that point.
Anyway, it just seems really inefficient, AND as usual I'm worried about keeping the performance up so I was wondering if there is a better way that I'm not aware of. Thanks!
Chris
Comments
can't you use animation behavior?
Obanyto- That seems like it would be wildly inefficient for what I need to do. Most of my art will be still frames, so it would add a lot of unnecessary frames. That seems like an ok solution if you wanted to get a fmv into a game though. Does GS not support the playing of any movie format?
I guess it all depend on what you are doing. But sounds like timers is a good way to go