Graphics, Characters, Text & Rooms

From Adventure Game Studio | Wiki
Jump to navigation Jump to search

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

Dithering and other mishaps in imported images

Error: "Cannot display message with extended character in SCI font."

Fixing oversized images

What to do if you imported a lot of images in the wrong resolution

Saving as 16-bit images in MS Paint

Importing .CHA files from Photoshop/Paint to AGS

Creating your own characters

Character speech problems; Creating talking views

First-person perspective games (a la Nancy Drew, Myst, etc.)

Strange things when character walks through/over a certain area

Scrolling room image size limits

How to end your game (win/lose/die) or kill off your character

Standard sizes for your main character sprites

Character pops up in weird place or not on walkable area from room to room

Character does not walk on any walkable areas

Size requirements for character sprites

Controlling non-player inventories

Displaying the left bracket ("[") in speech/messages

Having multiple characters in your game

World map feature (with hidden locations) in your game

White lines around character sprites

Disabling diagonal walking altogether (only walk up/down/sideways)

Animating your background images

Having a character continuously animated in the background

Jerky character/sprite animation

Using more than one loop per direction of a walking animation

Working around the room object limit

LucasArts style speech is barely visible over background

Adding an intro/cutscene to your game

Naming your character and using that name throughout the game

Changing the size of imported fonts

Intermittent crashing in full-screen mode

Objects don't align properly in high-res (640x480) mode

Imported sprites show unwanted purple areas

Simulating the letterbox effect, animiating it in and/or out

Getting an AGS palette code from an RGB color value

Imported background images just won't show up in the editor