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.

Code Snippets / How to load images in a Dynamic way - Use them - and Remove them

Author
Message
Sedate Solution
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location:
Posted: 27th Sep 2003 00:06
Aimed at showing people a more professional way of loading media into dark basic and how to use it.



A realy usefull function that can be amended to load any type of media.
Codger
21
Years of Service
User Offline
Joined: 23rd Nov 2002
Location:
Posted: 30th Sep 2003 17:26
Nice clean Function! I will probably adopt this method of loading media

It could use a few comments to explain that its main purpose is to assign image numbers in a sequential order.

Will the image names need to be GLOBAL to work inside funtions?

System
PIII 650 MZ H.P. Pavillion
394 Mem GeForce 4 400MX
=C=
20
Years of Service
User Offline
Joined: 8th May 2003
Location: United Kingdom
Posted: 15th Oct 2003 19:00
I have a question,

A function always remembers a local variable once it's been executed. So all you have to do is increase the count if the file exists.

That will save you a loop that costs a bit more processing power...

check my codebase for object managment functions. I use arrays but now you gave me an idea to use local ints instead...

nice one.

-------------------------------
Pointy birds, Oh pointy pointy
Anoint my head, Anointy 'nointy
=C=
20
Years of Service
User Offline
Joined: 8th May 2003
Location: United Kingdom
Posted: 15th Oct 2003 19:03
AHA I see...

you want to delete images using the db command... I wrote a function to do that, hence the array... nice one. I will convert to your system.

Cheers.

-------------------------------
Pointy birds, Oh pointy pointy
Anoint my head, Anointy 'nointy

Login to post a reply

Server time is: 2024-05-02 16:12:23
Your offset time is: 2024-05-02 16:12:23