The Daily Click ::. Forums ::. Klik Coding Help ::. Dispalying character portraits
 

Post Reply  Post Oekaki 
 

Posted By Message

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
26th July, 2014 at 26/07/2014 11:00:45 -

I'm about to place some character portraits into my game for dialogue sequences. These will be displayed as the User Animations of an active object.

My questions is, would it be best to have every character portrait (there are a lot) in the Active Object, and have that active object in every frame, even where certain portraits are not used? Or should I have only have the portraits I need in a modified version of that active object for each frame?

Which is the best method, performance/memory wise? Or is there not really any difference?

 
Image

Tell 'em Babs is 'ere...

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
26th July, 2014 at 26/07/2014 14:30:19 -

Having just one object with all the portraits would make the level load slightly slower, as all the portraits would be loaded at the start of the frame, whether they are needed or not.
Having multiple objects containing different portraits would make the file size slightly larger, as you'd have some duplicate portraits.

The latter would probably be preferable, but I doubt it's worth the extra hassle.

 
n/a

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
26th July, 2014 at 26/07/2014 15:50:42 -

You could use an Active picture object instead and have a "sprite sheet" of the character portraits. Use the active picture object to display a specific portion of the sprite sheet.

 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
26th July, 2014 at 26/07/2014 21:24:40 -

Thanks guys, the Active Picture is a great suggestion, though I tend to shy away from it. I'll definitely look into that though.

 
Image

Tell 'em Babs is 'ere...
   

Post Reply



 



Advertisement

Worth A Click