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 / problems using DATA for maps

Author
Message
Cuddle Bunniezzz 12
15
Years of Service
User Offline
Joined: 14th Jan 2009
Location: Buffalo, NY
Posted: 31st Jan 2009 16:30
Hello.

I'm stilling learning DarkBASIC Pro, but I'm using the DarkBASIC Pro book by Johnathan s. Harbour (and someone else's name who i can't remember).

anyways, In the book, it tells us to make our game maps using the DATA function, we do something like this:


Well, the output should look like this:

(minus the black area in the middle.

But the output looks like this when I ran the program:


I was using this tileset:

(from the metroid fusion debug room)

And this was the code I was using:

(a modified version of the Darkanoid game from the book to display the blocks)

Thanks for any help.

http://twewy-fan.com/ <-- The first ever fansite for "The World Ends With You"
Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 31st Jan 2009 21:54
The problem is where you declare tiledata. Change it to:



That should do it.
Cuddle Bunniezzz 12
15
Years of Service
User Offline
Joined: 14th Jan 2009
Location: Buffalo, NY
Posted: 1st Feb 2009 03:50
Hmm...

Thanks, that is what did it.

http://twewy-fan.com/ <-- The first ever fansite for "The World Ends With You"

Login to post a reply

Server time is: 2024-11-24 14:55:45
Your offset time is: 2024-11-24 14:55:45