Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / 2D Graphic Adventure

Author
Message
Stupot
18
Years of Service
User Offline
Joined: 13th Jul 2006
Location: East Sussex
Posted: 14th Jul 2006 00:16
Hi guys.
I'm in the early stage of developing a game based in and around the church in my local village. Although I haven't got very far yet, I can foresee one major problem and I was wondering if anyone could help.

It's going to be a 2D point and click adventure using photographs instead of 3D renders or cartoony graphics.

My main worry is how I'm going to deal with Items.

Firstly, How can I make sure that when an Item is picked up, it won't all of a sudden reappear next time I go to that screen?? And goes for unlocking doors etc aswell.. If i unlock a door, then go inside I want the door to remain unlocked and not keep locking again every time i want to open that door?

Secondly. Ive scoured this site and the net for Tutorials for similar types of games but it seems not many people have used DarkBASIC for this process... can anyone point me in the right direction for any help or does anyone have any useful source code I might be able to make use of..
Thanks a lot..

-Stu
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 14th Jul 2006 02:08 Edited at: 14th Jul 2006 02:10
Give rooms a number...Let's say you are in room number 1....
Dim door(20)..... so you can have 20 doors

If door(1) = 1 put an open door sprite there
If door(1) = 0 put a closed door sprite there
If item = 1 put the item there

If you pick up the item then item = 0

If you can drop the item in different rooms then you need to give the item the same room number. Let's say you drop the item in room 20...

Item = 20

If you open the door in room 20...

Door(20) = 1


If an item is in your inventory...

Item = 0


That sort of thing. Item can be anything....

Apple = 1
Gun = 1
Rock = 1

Zeus
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 14th Jul 2006 02:58
What I did was read all the examples, and now working on my latest blockbuster L.A. Assault
Stupot
18
Years of Service
User Offline
Joined: 13th Jul 2006
Location: East Sussex
Posted: 14th Jul 2006 13:24
Thanks man you make it sound easy... maybe one day it will be.
Any more helpful tips, from anyone will be gratefully received

-Stu

Login to post a reply

Server time is: 2025-05-25 06:35:26
Your offset time is: 2025-05-25 06:35:26