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.

2D All the way! / ImageShuffle Display Problem

Author
Message
Yekoms
20
Years of Service
User Offline
Joined: 6th Dec 2005
Location: Deep inside FUNCTION BlueSkys
Posted: 7th Dec 2005 14:26
Dev's,
I'm new to this but here goes.
I'm going thru the "Beginners Guide to DarkBasic" and am at the end of Chapter 10 and seem to have a problem,(probably very simple). In the ImageShuffle Source Code at the end of the chapter where you change the existing code. I have been able to add sounds, Levels etc... but when I try to add more tiles I don't get a display. It said to change if from a 4 x 4(rows and columns) to a 8 x 8 however I have 2 problems. 1)- I seems that you can only have 32 BITMAPS(0-31) where BITMAP 0 is the screen, so I don't understand how I would get 64 tiles. And, 2)- I tried to do a 5 x 5 tile display but now I don't get any display of the tiles at all. Bitmap 0 or any Tiles.
The Source Code for the 5 x 5 is below in the Code area. I have also Attached the MS Word sheet that has both the working 4 x 4 code and the nonworking 5 x 5 code.
Any help would be great.
Thanks,
Dennis in NC

Keep'em Movin
mr joe
21
Years of Service
User Offline
Joined: 12th Aug 2004
Location: Edinburger, Scotland. DBC
Posted: 8th Dec 2005 01:36 Edited at: 8th Dec 2005 01:37
Hmmm, for a start, you shouldn't use bitmaps for your tiles. You can load pictures to a bitmap and then use the 'get image' command to store them as images (which you can have 1000 of).

I don't know exactly what your trying to do in the tutorial as I dont have 'Beginners Guide' (is it a book or a website?) or MSWord and your source code has not appeared in the link.

If you post some more information (try posting the code just in {code} brackets) then I might be able to help more.
Yekoms
20
Years of Service
User Offline
Joined: 6th Dec 2005
Location: Deep inside FUNCTION BlueSkys
Posted: 8th Dec 2005 14:40
Thanks for the reply.
The book is "Beginner's Guide to DarkBasic Game Programming" by Jonathan S. Harbour with Joshua R. Smith.
It's seems well written and informative. Chapter 10 covers creating and using bitmaps.
I'll add the 4x4 source code and the 5x5 source code.
The 4x4 works fine however the 5x5 will not display the picture on the 25 different tiles/bitmaps.

Keep'em Movin
Yekoms
20
Years of Service
User Offline
Joined: 6th Dec 2005
Location: Deep inside FUNCTION BlueSkys
Posted: 9th Dec 2005 15:12
Good News !!!!
Problem solved.
Thanks for the help. I found that 1- I had a couple of bitmap #'s in conflict and also a problem with the image I was placing on the bitmap itself.
So, I scraped it and rewrote it.
Works great now.
Thanks again........

Keep'em Movin

Login to post a reply

Server time is: 2026-07-07 21:32:32
Your offset time is: 2026-07-07 21:32:32