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 / READ DATA (HELP)

Author
Message
Zhol
21
Years of Service
User Offline
Joined: 30th Mar 2003
Location:
Posted: 4th Apr 2003 09:30
I'm doing this one to test my post and two because I have a question.

Material: 1 image 20x20 pixels
code: read data
what I need? I would like to create a data block and paste the image in the section I have set values for, so it can tile a large section of the screen. This is what I sort know in theory...

'code in generally speaking
For
read ' I guessing this is where the read would go to do this
next

'data block
data 0,1,1,1,0
data 0,1,1,1,0
data 0,0,1,0,0
etc...

If I'm on the right track, could some one help explain how I could get the image to paste in the set place of the data block where the 1's are set.
Thank you to whom ever took the time to read this and
decided to help me with this read data setup.
When the dark angel come's a knocking, don't be shy, let'm in.
haggisman
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 4th Apr 2003 21:53 Edited at: 4th Apr 2003 21:57
Heres some code that i think may help. The comments should explain it all.



OR you could do it a simpler way as follows...



Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 4th Apr 2003 21:56
maybe this example will help you mate.





indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 4th Apr 2003 21:56
haggisman
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 4th Apr 2003 21:58


Specs:- 1GHZ athlon, Radeon8500, 192mb ram, winxp
Zhol
21
Years of Service
User Offline
Joined: 30th Mar 2003
Location:
Posted: 10th Apr 2003 15:24
Thanks guys.

Since I'm on the subject, does dark basic have a swap command like the old qbasic 4.5 had for ARRAYS? You know to organize data?

Say the person entered in 5 names. Now you want to take those names and print them in alphabetical order. I figure even something simple like this should also be an important issuse for games when you want to organize and store data and have the data out put in a number of ways. Thanks again!

P.S. I'm a computer animator and the graphic of the eye was made by me. If you need any help in the subject of 3dmax etc, maybe I can help.

Cheers.

When the dark angel come's a knocking, don't be shy, let'm in.

Login to post a reply

Server time is: 2024-11-24 09:32:11
Your offset time is: 2024-11-24 09:32:11