# Does each game asset always require a prefix such as 'spr' or 'obj' in their name?

Having started only recently with using GameMaker for game development (keep in mind that this is the first time in a long while that I'm doing something like this, so I'm technically at beginner level), I've lately been thinking about something that seems to be common place throughout creating a game with the software.

Through all the tutorials I've been through so far in GameMaker:Studio, I've noticed that the tutorials seem to want the names of game assets to always have a prefix in their names depending on what the game asset is, usually something like spr_ for sprites or obj_ for objects.

I've never exactly liked this sort of naming method, but I don't know whether or not to keep doing this or to just avoid using the prefix entirely. Does the engine require these prefixes for a game to compile or something?

Are these prefixes necessary?

No, this is just a coding convention on the part of the people who wrote the code. You can name your objects however you want (within reason... I'm sure $@#$ would not be a legal name).
• It's especially helpful when getting to work with GML. Resource names must be unique, and having this prefix system means you can have spr_player and obj_player as two differently-named but easily-identifiable resources. – Niet the Dark Absol Oct 19 '15 at 20:39
• One of the reasons some people put the type as a prefix rather than as a suffix is to leverage autocompletion. By starting with obj_ (or just o) you get a list of every object that you can then navigate or filter if you don't remember a particular name. – Darkhogg Oct 19 '15 at 23:02