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 / Possible to use data , read, and arrays to load multiple images using a loop?

Author
Message
Gyrich
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: Here, obviously.
Posted: 14th Jan 2006 08:26


Would the above work to load images? i need to load more than 50 images for my game, was wondering if there was a workaround for it like this or something else perhaps. thoughts?

DBPro User
PC: WinXP, AthlonXP 2100+ 1.7ghz, 80gb HD, Nvidia GeForce FX 5200 (128mb onboard RAM), 512mb DDR400 system RAM. Thank you for your help.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 15th Jan 2006 03:52
It doesn't need to be that complicated. You can use "str$" to convert a number to a string... so you can use the variable in the for/next loop to add the number to the file string.



I recommend you keep away from .jpg images. They change colors so if you load a anything black there will be spots of non-transparent areas. Use .bmp or .png.


Gyrich
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: Here, obviously.
Posted: 16th Jan 2006 09:59
ah thx again grog lol. can't wait till i get to the point where i can help others like you've been helping me lol. thx for the tip on .jpgs, i'll keep that in mind.

DBPro User
PC: WinXP, AthlonXP 2100+ 1.7ghz, 80gb HD, Nvidia GeForce FX 5200 (128mb onboard RAM), 512mb DDR400 system RAM. Thank you for your help.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 16th Jan 2006 22:51
Np. Keep practicing and it won't be long.


Login to post a reply

Server time is: 2024-09-24 13:26:10
Your offset time is: 2024-09-24 13:26:10