[T1 Release] Animation Tutorial

Pages : [1] 2

cyclonite
03-10-2003, 02:41 AM
I decided to whip up a tutorial which shows you how to get an animation into Tribes.
I didn't spend too much time making it, so its rather basic. If you have any brains I'm sure you could figure it out without too many problems.

http://home.iprimus.com.au/sokolow/Tribes/Animation_tutorial.zip

If there is any major mistakes in there feel free to tell me.

<3 to all those guys out there that were involved in making any apps to help etc. ;)

**NOTICE** The above link has been updated and should no longer contain any problems.

Have fun.

Nikita
03-10-2003, 08:53 AM
Here (http://www.Team5150.com/~fsb-spy/Tribes1/PBAv1.zip) are some more PBAs that were whipped up a while ago.

Nice job, cyc!

EliteTrackStar
03-10-2003, 10:16 AM
define animation... as in movement of the player or a gif type thing?

Shinigami
03-10-2003, 11:04 AM
define animation... as in movement of the player or a gif type thing?

gif type thing

bLiSS
03-10-2003, 03:38 PM
Awesome ! Now I definitely need to learn how to make it so it appears only when killpop.cs shows up ;)

Here is a short vid : 110 kb .avi (http://hosted.tribalwar.com/conversion/bLiSS/anitest.avi)

One thing though :


//////////////////////////////////////////////////////
//Filename: animations.cs
//
//Credits: Cyclonite
//
//Date: 6/3/03
//////////////////////////////////////////////////////

function loadPlayGui() {
if(File::FindFirst("play.gui") != "") GuiLoadContentCtrl(MainWi ndow, "play.gui");
else GuiLoadContentCtrl(MainWi ndow, "gui\\play.gui");

if($PlayGUI::isLoaded == 0) {
Event::Trigger(eventLoadP layGui);
$PlayGUI::isLoaded = 1;
}
}


IDPBA_TEST = 00160545, "test.pba"; //Change needed here, change IDPBA name, number and filename as required

//Change the Following 5 variables as required

$Anim::Name = "Test_anim";
$Anim::X = 60;
$Anim::Y = 100;
$Anim::Width = 100;
$Anim::Height = 100;

Event::Attach(eventLoadPl ayGui, "HudGui::create();");

function Anim::Create()
{
echo("************************* ************************* *******************");

$Anim = newObject($Anim::Name, SimGui::AnimateBMA, $Anim::X, $Anim::Y, $Anim::Width, $Anim::Height);

addToSet(PlayGui, $Anim);

echo("************************* ************************* *******************");
}

Event::Attach(eventConnec tionAccepted, Art::Create);


I had to change this line :

function Anim::Create()


to this :

function HudGui::Create()


I got prompted a HudGui::create Unknown command.. and I know nothing about scripting.. so I tried fixing it the best I could :|

My edit is good ?

kesh
03-10-2003, 03:55 PM
Well, the way you explained it wasn't...unless...you changed it from HUDGui::Create to AnimGui::Create :o

bLiSS
03-10-2003, 04:01 PM
Hrm.. I've changed this line

function Anim::Create()


from animations.cs to this :

function HudGui::Create()


I don't know if it's the correct thing.. but it works :|

EliteTrackStar
03-10-2003, 04:08 PM
the avi, was very helpful... it's going to make my new tribes gui more distracting =D.

bLiSS
03-10-2003, 04:12 PM
Yea, it's rather distracting when playing :| I'm not keeping this, it's only for my 'know-how' ;)

I've noticed the animation was slower.. or would come to a halt on a frame when I was moving. Wouldn't know if it's only me.. but just for others to know.

Renon
03-10-2003, 04:59 PM
hmm any damage to fps?? thats what I want to know :P

bLiSS
03-10-2003, 05:18 PM
I don't think it did anything bad. I'd say at the most it would cut me 10 frames.. but I was hosting in my own server. It might get worse if I used it in a full server.

Best thing would be to try it out yourself ;)

·liquid·
03-10-2003, 07:55 PM
Looks like cyc made a little typo. Might wanna fix it before too many people d/l the tut, cyc.

Line 30 should be:

Event::Attach(eventLoadPl ayGui, "Anim::Create();");

Also, there is an extra event::attach at the bottom of the script that doesn't need to be there.

cyclonite
03-10-2003, 10:16 PM
OK thanks for that guys. I didn't really test the script, but I shall fix it when i get home from school.

cyclonite
03-10-2003, 11:55 PM
Just uploaded the zip again with all the fixes. Same link as in original post.
Thanks for finding the bugs so quick guys ;)

g0ds gReeN
03-11-2003, 06:21 AM
f this i give up

EliteTrackStar
03-11-2003, 10:46 AM
l33tness, i might play with it again after i finish my new l33t config. I tryied to making the flag icon do a little animation when it's activated on my flag hud, but i didn't really notice it as much as the name poping up who's holding the flag. So i went back to my orginal team icon. Then I made a animation while I just played, and that was a bit too distracting for me... for more reasons then one =D. I probbly should of tested it on a server before I erased them =(

g0ds gReeN
03-13-2003, 08:49 AM
event::attach unknown = i need presto/writer ?

Nikita
03-13-2003, 09:54 AM
You need Events.cs, yes.

g0ds gReeN
03-13-2003, 10:01 AM
btw is there a size/frame limitation on this?

Nikita
03-13-2003, 10:04 AM
No. But obviously you'll suffer some FPS loss if you create some fullscreen monstrosity... ;)