Prowler Productions
  Dink Smallwood Forum
  mp3? timer?

Post New Topic  
profile | register | faq

Author Topic:   mp3? timer?
Ronny posted 12-27- 06:53 AM CT (US)   Click Here to See the Profile for Ronny   Click Here to Email Ronny  
1) Is it possible to play mp3's in the game? (I guess not)

2) Is there a possibility to create a timer? I mean, on a screen in my dmod Dink has to kill all the enemies in a minute or else a bomb will explode. Is this possible?

someone2 posted 12-27- 09:53 AM CT (US)     Click Here to See the Profile for someone2  Click Here to Email someone2     
1) No.

2) Yes.

Have a nice day. J/k :)

create a script, say, timer.c. Ever this in:

void main(void)
{
int <ext = 0;
int &left = 60;
int &crap = 0;

loop:
wait(1000);
&left -= 1;
if (<ext != 0)
sp_active(<ext,0);
&crap = get_sprite_with_this_brain(9,1);
if (&crap == 0)
kill_this_task();
say_xy("You have &left seconds left!",0,370);
if (&left > 0)
goto loop;

//create huge explosions..
}

Then when you want the timer to start, enter spawn("timer");. Don't use external, as that will run the script on the same thread, and pause the current script.

someone2 posted 12-27- 09:54 AM CT (US)     Click Here to See the Profile for someone2  Click Here to Email someone2     
Uhh.. thoses
someone2 posted 12-27- 09:55 AM CT (US)     Click Here to See the Profile for someone2  Click Here to Email someone2     
Doh. Thoses <ext should be &text. (Hope this turns out.)
Ronny posted 12-27- 10:28 AM CT (US)     Click Here to See the Profile for Ronny  Click Here to Email Ronny     
thanks!

Post New Topic  Post Reply
Hop to:


Contact Us | Prowler Productions

Powered by: Ultimate Bulletin Board, Freeware Version 5.10a
Purchase our Licensed Version- which adds many more features!
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.