Main Menu

beat'em up game

Started by ATLUS, August 10, 2008, 10:11:41 AM

Previous topic - Next topic

ATLUS

Thank you Kevin!
now I understood the logic FxImage.

kevin

#16
 As outlined in the Help->About->NamingConventions in the documentation, there's two approaches in PB.   The CREATE (explicit) or NEW (dynamic).   With explicit commands such as CreateImage()/LoadImage,  the user specifies the Media Index they wish to use.   In this case, the onus is upon the user to ensure this is  valid (free, not already in use) media index.  If it's not, any existing media will be destroyed when the new media is  created/loaded.      

 Any command with NEW keyword prefix, such as NewImage(), LoadNewImage()  use dynamic media index allocation.  Dynamic allocation means PB returns a new Media Index for you that's not in use.  Making it impossible to clash with existing media.