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! / Bitmaps in an Array?

Author
Message
Davecgt
20
Years of Service
User Offline
Joined: 6th Feb 2004
Location:
Posted: 6th Feb 2004 20:04 Edited at: 6th Feb 2004 20:20
Hey All,
Im using Dark Basic to make a Zelda type 2D game and i was wondering what the best way to implement the gameplay screens would be? Is it feasible to store the screen images as bitmaps in a 2D array, like a sort of grid, and then draw them as the player crosses a screen boundary? I've been trying this and i cannot get a bitmap to store into an array.

Thanks in advance!
Bya,
Dave
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 6th Feb 2004 20:31 Edited at: 6th Feb 2004 20:31
Best to store it as an image. An image is a bitmap anyway. Then store the numbers of the images in an array. Then paste images using the array numbers.

Pincho.

Davecgt
20
Years of Service
User Offline
Joined: 6th Feb 2004
Location:
Posted: 6th Feb 2004 20:38
Thanks Pincho, i'll try that.

Bye,
Dave.
Davecgt
20
Years of Service
User Offline
Joined: 6th Feb 2004
Location:
Posted: 6th Feb 2004 21:18
Could you give me a hint as to where i'm going wrong? I've got a feeling my data list is wrong but i'm really not sure.

Cheers,

Dave.
Pincho Paxton
21
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 6th Feb 2004 22:20
You are loading all of your Bitmaps in one go, and they are overwriting each other/ Loading on top of each other. Try Load Image instead.

Load Image "Image1.bmp",1
Load Image "Image2.bmp",2
Load Image "Image3.bmp",3

Then you don't have to Get Image. But you do have to save your images in an art package so that they are already the right size.

Pincho.

Davecgt
20
Years of Service
User Offline
Joined: 6th Feb 2004
Location:
Posted: 6th Feb 2004 22:27
Ahh, thanks again Pincho. With your help i'll get there in the end
I'll try your suggestion right away.

Cya!
Dave.

Login to post a reply

Server time is: 2024-05-13 11:46:03
Your offset time is: 2024-05-13 11:46:03