Graphics, Characters, Text & Rooms: Difference between revisions

No edit summary
 
Line 1: Line 1:
==Deleting characters (and other items)==
==Deleting characters (and other items)==
''Can I delete stuff in the editor somehow, besides sprites and animation frames? For example, can I delete characters?''
No. If this were possible, then beginners could potentially screw up their game big-time. To avoid frustration and accidents, Chris has disabled the deleting of most things. But what if you don't need that extra inventory item for now? Or what if you don't want that extra GUI you created? Although you can now delete GUIs in AGS, there is an alternative. Just set the GUI so that it never appears (Set it to "Popup Modal"), or simply never refer to the inventory item. If you can't delete it, ignore it.
To delete a GUI, just click the "'''Delete this GUI'''" button. '''WARNING:''' You must be ''' ''very careful'' ''' in doing this, as items in AGS are referenced by number; if you delete a GUI that is not the last in the list, the GUI IDs will be renumbered. As a result, it is possible that your game's script will refer to the wrong GUIs or even a non-existing GUI, causing crashes that end up being difficult to track. Fortunately, you have a name for each of the GUIs. If you only refer to them with their script names (i.e., you didn't type in the '''exact''' GUI IDs in your scripts), simply recompile all the rooms ('''Game -> Rebuild all room files''') and then save the game.
You can also delete GUI objects in the editor. Just select the object and hit the DEL key. '''WARNING:''' You must be even '''more''' careful in doing this, for the same reason mentioned above. Unfortunately, currently you cannot set a name for GUI objects, so you have to fix your script manually if you really want to delete a button or a label.
Room objects can also be deleted by right-clicking now. Use the same caution as above for this feature. For fonts, characters, views, inventory items, etc., just re-use them as advised above or just leave them alone. They don't contribute much to file size anyway. Note that the deletion of items is only meant to used by experienced users, and remember to '''BACKUP''' your game before doing any such hazardous acts!
We understand the desire - the '''need''' - to "clean up" after yourself, so to speak. But keep in mind that sometimes it is better to simply leave unused items alone (or until you can reuse those slots). There is no significant increase in memory usage or filesize anyway.
As for characters, why delete them when you can just re-use them? If you have one too many character slots, just don't use that last character slot.
==Using 3D characters and backgrounds==
==Using 3D characters and backgrounds==
==Dithering and other mishaps in imported images==
==Dithering and other mishaps in imported images==