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 / Problem with Tiling engine

Author
Message
Saiochi
18
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Under your bed
Posted: 19th Sep 2006 11:10
Ok, so I have a tiling engine, It works.. sort of



The output should be a C shaped object, but instead it comes out as an upside-down U shape.. Any thoughts? Also, how would I integrate scrolling into this?

I attached the Source files, and tiles so you can give it a go..

Attachments

Login to view attachments
Zergei
19
Years of Service
User Offline
Joined: 9th Feb 2005
Location: Everywhere
Posted: 19th Sep 2006 18:08
Your saving the data statements wrong. Change this...

myArray(x,y)=tile

to this....

myArray(y,x)=tile

Further on my stuff at...
Cave Man
18
Years of Service
User Offline
Joined: 22nd Aug 2006
Location: North Carolina, US
Posted: 19th Sep 2006 18:35
when you read the map out of the data, instead of doing this

for x = 1 to 4
for y = 1 to 4

do this

for y = 1 to 4
for x = 1 to 4

Your signature has been erased by a mod because it's larger than 600x120
Saiochi
18
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Under your bed
Posted: 20th Sep 2006 00:16
@ Zergei - It worked!!
@ Cave Man - I had already tried that to no affect, but thanks for trying

I still need help with getting the map to scroll though.. =[
Saiochi
18
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Under your bed
Posted: 20th Sep 2006 06:02
Also, is there a way to use .png files in DBC?

Using bitmaps for all my images is going to make my game way too huge..
Saiochi
18
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Under your bed
Posted: 20th Sep 2006 07:13
@ Zergei - It worked!!
@ Cave Man - Yours Worked too!!

Thank you both

I still need help with getting the map to scroll though..
Saiochi
18
Years of Service
User Offline
Joined: 17th Sep 2006
Location: Under your bed
Posted: 20th Sep 2006 14:31
Nevermind, got it!

If you have X-ray vision, can you see through your own eyelids?

Login to post a reply

Server time is: 2024-11-26 12:30:53
Your offset time is: 2024-11-26 12:30:53