|
Couple of questions, part two Displaying 1-7 of 7 total.
1
ErayMan
|
1. Can i load more than one image or sound at a time?
2. Is it necessary to free() all our loaded thing? I have tried once, and verge was crashing, so i wonder if it is important.
3. How can i make a textbox that appear only during an amount of time, i tried a wait() function, but, of course, the textbox disapear while the fonction wait()last, so, can ya help me?
thanks
-ErayMan
Beans are an excellent source of proteines! So please, be nice with them ...
Posted on 2000-12-27 20:21:32
|
jesusfreak
|
hi.
[1]. Load things?? well yes, you can load things ...
umm you can do..
snd=CacheSound("sound.wav");
img=LoadImage("image.pcx")
see you can do that.. umm. ( and use the ints later.
[2.] I am not sure of what you mean, if you have a picture, and you want 50% gone, then it cannot be done, but other wise you can free(); a thing 1 at a time like above,
free(snd);
free(img);
and for [3].
try Tvs ( the verge source ( the link at the options bar on ur left)
and umm, gooday!
... OI have been deprived of my mountain few :( my mommy will not get it today!! she make igor angry!!
Posted on 2000-12-27 21:17:11
|
ErayMan
|
1. I mean, load something like 5 images at a time, like:
Image1 = LoadImage("image1.gif");
Image2 = LoadImage("image2.gif");
Image3 = LoadImage("image3.gif");
or, you can only do this:
Image1 = LoadImage("image1.gif");
free(Image1);
Image2 = LoadImage("image2.gif");
free(Image2);
...well you got the point
2. if you load an image and don't unload it after you use it, will it make the game crash?
3. well, i guess i'ts cause ya can't help me
thanks anyway
-ErayMan
Beans are an excellent source of proteines! So please, be nice with them ...
Posted on 2000-12-27 21:51:07
|
el_desconocido
|
Yes, you may load multiple images and sounds at the same time.
You do want to free your images/sounds when you're done with them, crashing is usually caused by freeing them too soon, or not allocating enough memory for grabregion().
In your text box, define a local int:
int temptimer;
and then after the showpage(); place the following:
temptimer=timer+100; // pauses 1 second
while(timer
-Pontifex
"How many rocks are there, in the whole world?"
Posted on 2000-12-27 22:41:30
|
el_desconocido
|
Yes, you may load multiple images and sounds at the same time.
You do want to free your images/sounds when you're done with them, crashing is usually caused by freeing them too soon, or not allocating enough memory for grabregion().
In your text box, define a local int:
int temptimer;
and then after the showpage(); place the following:
temptimer=timer+100; // pauses 1 second
while(timer<temptimer) { updatecontrols(); }
You can change the +100 to make it wait longer or shorter times, in ticks (1/100th of a second)
-Pontifex
"How many rocks are there, in the whole world?"
Posted on 2000-12-27 22:45:09
|
jesusfreak
|
[1]. yes you can do that..
[2]. yes, but it is wise to do so after you do not need them anymore
[3]. you are right HA!!
... OI have been deprived of my mountain few :( my mommy will not get it today!! she make igor angry!!
Posted on 2000-12-28 03:03:24
|
ErayMan
|
(nt)
Beans are an excellent source of proteines! So please, be nice with them ...
Posted on 2000-12-28 17:13:18
|
Displaying 1-7 of 7 total.
1
|
|