Game Development Community

dev|Pro Game Development Curriculum

Animated Skin

by Kent Butler · 12/20/2007 (10:22 am) · 5 comments

Download Code File

This is very simple and rather obvious. There is equally obvious room for improvement in the script (pause, reverse, etc.)

THIS IS NOT TO PLAY MOVIES - it's to add a cool ambient effect and maybe make a moving ticker or something.

I don't know the overhead implications of this, but it seems to work pretty well on several smallish TV shapes at once at a frame delay of 150. Tweak it and see what happens.

#1
12/20/2007 (9:38 pm)
Maybe I don't understand, but isn't this what IFLs are for?
#2
12/21/2007 (9:24 am)
Yea, IFL's do the same thing. Wouldn't it be lovely to know everything about the engine. Then we might stop re-writing it. I looked at your resource and the code is cool and will come in handy for objects in which I don't have the source files for and want to do a simple IFL. You have the basic's down for skinning characters, so keep it up.
Are you donating the TV screen and may we modify it? I need a screen to hang on the walls and play Theora Video on and it will save me some time. I will be happy to share how we do it when we we get it operating.
#3
12/22/2007 (12:07 pm)
Now I'm gonna go find out what the heck an IFL is. I wanted to practice packaging up a resource anyhow. If I knew WHAT to ask the darn search engine for, it sure would be more useful.

"as we know, there are known knowns; there are things we know we know. We also know there are known unknowns; that is to say we know there are some things we do not know. But there are also unknown unknowns - the ones we don't know we don't know."
-Donald Rumsfeld


Sure do whatever you find useful with the art. I was going to play with Theora Video at some point - I was thinking as a texture- so if you figure it out, that would be awesome!
#4
12/26/2007 (2:52 am)
I don't think this is a bad thing. The problem with IFL's is you can't scale them. Using Kent's resource you can map 2d image sequences to a flat plane and cycle though animation - good for fire, good for 2d beasties - nice work!
#5
12/28/2007 (3:32 pm)
Great resource! I only had to change one thing to get this working and thats when your checking to see if we will loop. I changed:

if(%this.loopAni == true)

to

if(%this.loopAni $= "true")

Then it works like a charm!