Your browser (Internet Explorer 6) is out of date. It has known security flaws and may not display all features of this and other websites. Learn how to update your browser.
X

Solkraft Tutorial 4: Blueprints

Blueprints is what the level editor uses to represent your entitites. When you create a new blueprint, you attach all of the properties you want to it, and then it will show up as a placeable entity in the level editor with those attached properties. This tutorial will go over how to create new blueprints.

First we go to the \blueprints\ folder from the last tutorial, and then we create a new file called “Blueprints.xml”, like so:

SolKraftEngine\projects\yourprojectname\resourcefiles\blueprints\Blueprints.xml

In this file, like with the .xml file from the last tutorial, you want to define all your blueprints under some tags, in this case the <BluePrints> </BluePrints> tags. It should look something like this:

<BluePrints>

<BluePrint name=”BlueprintName”>

<Property name=”PropertyName”>

</Property>

<Property name=”PropertyName2″>
<var name=”AttributeName6″ value=”75″/>
</Property>

</BluePrint>

</BluePrints>

Per blueprint you define what properties are attached to it. Per property you only specify an attribute if you want this specific blueprint to have a different default value for that specific attribute, otherwise you don’t have to redefine attributes per property.

And that’s it, the blueprint will now show up in the level editor for use as a placeable entity.

Leave a comment  

name*

email*

website

Submit comment