Skip to main content
Inspiring
October 27, 2023
Question

How do make animate cc assemble a avatar in memory

  • October 27, 2023
  • 1 reply
  • 1263 views

i have a very old set of game files thats been baffling me for ages how they did this and wondering if anyone has any insights how the as3 code works.

i am looking at this code due to how elegant it , but over time the  actionsript f files that combined them all are long lost and this is the missing step i need to use

this method for my own projects. 

 

This thing loads 400 character files /9 species and they fit into ONE wireframe and have no less than 16 types of clothing. i got as far as being able to in the TIMELINE being able to assemble them by dropping and replacing assets but the as3 code is baffling me how its done.

 

here is how the files are setup: 

character file->wireframe

16 pieces of clothing->wireframe

the files themselves are as follows

wireframe has NOTHING but placement data on it 

character file has nothing but limited cell animation pieces

all characters have their pieces in one place as far as i can tell(i can if i name them the as3 name they will combine perfectly) 

 

as3 names match for wireframe and character files

clothing pieces match as3 names in the wireframe 

 

its glued together by a sql script that has things like color+species and then files for the clothing

are literally stored at example var1 (website)/ + var2 +var3 and for instance a yellow dog is 

sitename/yellow/Dog/YellowDog.swf 

i have not found the exact path for the clothes but its the same concept

 

 

 

i don't think this is method is copyrghted as its not a unique concept but just seems like its not hitting me how they got in the memory of flash to get it to work. the last time i tried i had to extract the files into

their own swfs and place the x and y data manually on the wireframe as a separate layer for every piece, im clearly missing something.

oh all the character files also are ONE swf, so im assuming this may be a adobe air loader doing this not the normal one as  i believe that can load one symbol from a swf vs the 

whole file.

 

 

 

This topic has been closed for replies.

1 reply

JoãoCésar17023019
Community Expert
October 27, 2023

Hi.

 

It's really hard to tell what's really going on without seeing the FLAs and/or SWFs.

 

Do you mind sharing a link?

 

Regards,

JC

Inspiring
October 27, 2023

this is the game im using as a reference file to this method of avatar development.

its been closed for many many years....2014 exactly. IF you rename the "name" to the as3 class name and drag them into the wireframe, they assemble perfectly. ive not got past this point and know what the sql server did was have two varables "blue" and the "species" it would like to put this method in my toolkit to its efficency., its been bugging me forever as its like i can see the result

manually...but can;t see how the code worked. theirs also no no less than 16 types of clothing so its a nice example to

look at as well.

 

https://web.archive.org/web/20130312000000*/http://www.petpetpark.com/games/versionedAssets/startup_v1/WireframeLibrary.swf

https://web.archive.org/web/20130312193347/http://www.petpetpark.com/games/assets/itemSwfs/NewSpecies/DIPNI_final/BLUE_Dipni.swf

there is 3 other avatar files and all load into that same wirreframe. this why im trying to figure how it was done.....as

this method also looks usable in html5....if i can figure how they did it.

 

Inspiring
October 27, 2023

Thanks for the files and info.

 

I could see the character assembled and walking but not the actual game.

 

Can you show us the game running so that we have an idea of what type of avatar making you're talking about?


you got the problem solved that was puzzling me. what did you do to make it load the files?