As I believe I have explained about darkness and lightness before in my blog but this is just a post to recall all of the fundamentals of darkness and lightness.
As you already might know to code your game to make the room dark you do this.
The attic is a dark room.
Then to make a torch or light source to enlighten that room and display the basics of it you do the following.
The flame torch is lit.
If the torch is carried by the player when he/she is in the dark room. The room will automatically be light.
But if the player is not carrying a touch which is lit. The Rommel will remain dark. But the player can still move around. He can't just go and pick something up.
Any other question you need help with to do with dark and light just leave a comment or any question you would like to pose to me.
I assure it will be answered.
Want to know even more on dark and light rooms, well click here
Thanks,
Danielfrogs
My blog is aimed to help all people to understand and use inform 7. Inform 7 is a program which hosts an interactive fictional game. My blog will help you to code, play and publish your very own game for FREE.
Showing posts with label dark. Show all posts
Showing posts with label dark. Show all posts
Friday, 19 April 2013
Wednesday, 27 March 2013
Dark Rooms
Dark rooms act as an add on to your game. It gives the player a bit of excitement. Dark rooms cannot be interacted with until the player is carrying a lit torch or light source. When the player is carrying one of these they can see the description of the room and the objects it holds. Without a torch of light source you won't be able to interact with that room. You can move around while in a dark room, but you can't see.
To do this we must think of a name for our room, give a description. If you don't know how to do this look in the blog archive on the right of the screen and find a section on rooms.
Mine will be ........
Study Room is a room. "You are in the study room, you are surrounded by lovely books, old and young. There is a desk on which another thicker book is lying. To the west is another passage."
This is a room you can see. But to make it a dark room you must add this.
Study Room is a dark room.
Put this after you have explained it is a room. You must now make a torch. My torch will be a lantern. I suggest putting this in the room before this one, as the player can pick it up. If you put it in the dark room it won't be a dark room any more.
A Lantern is in Hallway. A Lantern is lit.
Or
A Lantern is in Hallway. A Lantern is unlit.
The player will not be able to light the unlit light source. So I suggest having any Light Source lit at all times in the game.
Hope this helped you in your text adventure.
Thanks,
danielfrogs
To do this we must think of a name for our room, give a description. If you don't know how to do this look in the blog archive on the right of the screen and find a section on rooms.
Mine will be ........
Study Room is a room. "You are in the study room, you are surrounded by lovely books, old and young. There is a desk on which another thicker book is lying. To the west is another passage."
This is a room you can see. But to make it a dark room you must add this.
Study Room is a dark room.
Put this after you have explained it is a room. You must now make a torch. My torch will be a lantern. I suggest putting this in the room before this one, as the player can pick it up. If you put it in the dark room it won't be a dark room any more.
A Lantern is in Hallway. A Lantern is lit.
Or
A Lantern is in Hallway. A Lantern is unlit.
The player will not be able to light the unlit light source. So I suggest having any Light Source lit at all times in the game.
Hope this helped you in your text adventure.
Thanks,
danielfrogs
Subscribe to:
Posts (Atom)