Tuesday 26 March 2013

Create an Object

This is a quick tutorial but very detailed showing you how to create an object which is on the floor.

You do not specify that it is on the ground, because its not on a table, or shelf.

Tables, shelves, mantle tops, and anything you can place an object on are called supporters.

We will explain how to use supporters later in our blog.

First we must type the name of our object.

A Spinning Top

This is how you code it

The Classroom is a room.

A Spinning Top is in the classroom.

Just type the name in and say where it is you can also add more detail as so.

The classroom is a room.

A Spinning Top is in The Classroom.
The description of A Spinning Top is "Bright in colour, a very fun toy. It looks quite new and has a label on it stating ' This is school property. '"

This just adds a description to your item, so when its examined it shows the text.

So that is about it, Oh I forgot to put your item into a container just say.

A Spinning Top is in a chest.

At the end put the name of your container. Remember to recompile your game often to save and compile changes put in.

I would like to hear your comments,

Want to find out how to create rooms, well click here
thanks,
danielfrogs 



1 comment:

  1. When I first started writing interactive fiction, around 2 years ago I struggled with just the simplest task. Creating an object!

    It may seem simple but if you don't know what you are doing it is a difficult task.

    Did this help anyone?

    I would like to know.

    ReplyDelete