Game Development Community

dev|Pro Game Development Curriculum

Managing the new "Resource" feature in TGB

by Andrew Donelson · 07/03/2006 (11:24 am) · 1 comments

Download Here then unzip this archive into your drive:/tgbRootFolder/games/resources/ folder

Steps to creating a new Resource for your projects:

1) Create your resource folder and Folders. The name of your resource folder is the same used in step 2.
2) Search & Replace myResourceName with what you want to call your resource
3) Copy and paste the resource template for each individual resource you wish to add.
4) Save, Run TGB, Project->Resources (CTRL+R) add your new Resource, or multiple resources.

A few things to note about the new Resource Feature.

1) Currently you have to create it manually.
2) Once you add the resource to your project in level builder, if you delete them there...they are not really deleted, they will appear again nexttime you run. So if you dont want them then remove the code in the resourceDatabase.cs file.
3) Image Builder and Animation Builder do not have access to the image resource defined at this time, only tile map builder.
4) IF you put your images in project/data/images/ folder and the resource folder, you can use project->image builder to make your datablocks and copy and paste them into your resourceDatabase.cs file, just remember to update the path to file and remove it from the projects/managed/datablocks.cs file when done,
5) I have no idea how to get a internal datablock name into the Level Builders right sidebar "Datablocks". Its always blank and none.
6) You can save all you want, but it will not actually projectfolder/managed/datablocks.cs file until you exit the program.
7) Particle Editor seems to be gone from TGB. I dont see it in menu or none of the function keys (used to be F11) bring it up and i dont see it in GUI's.

About the author

Recent Blogs

• 3D Starfield in 2D

#1
09/17/2006 (7:01 pm)
Has anyone found a way to include particles as part of a resource? All the methods I've tried have not worked.