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.

Newcomers DBPro Corner / levels using the data comand

Author
Message
viscera eyes
20
Years of Service
User Offline
Joined: 29th Apr 2004
Location: the moon
Posted: 12th Jul 2004 11:44
i read in another post that the data comand can be used to create levels in DB. what about DBP? if it can, how?
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 12th Jul 2004 22:41
Here is a very basic example. The idea is to just store the map layout in data statements and 'read' them number by number. Here I am creating a cube wherever there is a '1'. Great for pacman type games. All that is needed for extra levels is a new set of data statements and some minor code changes rather than lots of manual object positioning.




Boo!
viscera eyes
20
Years of Service
User Offline
Joined: 29th Apr 2004
Location: the moon
Posted: 13th Jul 2004 07:51 Edited at: 14th Jul 2004 15:13
thanks. i have another question, when i try to make my character shoot something it will make one bullet and then give me a message saying that the object already exists. i know why its giving me that message but i dont know how to fix it.

here is my code:

The Great Poe
User Deleted
Posted: 15th Jul 2004 09:35
SPOOKY. YOU ARE GOD.

Do you mind if I use that system for a stupid FPS I'm making?
SandraD
20
Years of Service
User Offline
Joined: 30th May 2004
Location: Down on the corner, out in the street.
Posted: 15th Jul 2004 13:47
Heh! I used the same technique in my HexaPawn help scrolly, where I needed two different sets of text for the help information.

But then, that program has gone ignored anyway here...

Any truly great code should be indisguishable from magic.
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 15th Jul 2004 18:35
Quote: "SPOOKY. YOU ARE GOD"


No, I'm a ghost

You can do what you want with the code as it's hardly got anything special in it, just basic data reading and block building.


Boo!
SandraD
20
Years of Service
User Offline
Joined: 30th May 2004
Location: Down on the corner, out in the street.
Posted: 16th Jul 2004 07:11
Heh-heh Spooky!

Any truly great code should be indisguishable from magic.

Login to post a reply

Server time is: 2024-09-22 16:20:22
Your offset time is: 2024-09-22 16:20:22