The Dink Network

Reply to Re: Wait times

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
November 1st 2024, 07:22 AM
custom_simon.gif
SimonK
Peasant He/Him Australia
 
Hmm, I tried it, but unfortunately it didn't wait any time at all...

My script is somewhat long with a few things happening, but it is meant to be a sequential series of events...

==========================================

Okay this seems to work for me

	//explosion sounds and smoke to fill the screen
	int &sbomb = create_sprite(320, 240, 12, 434, 1);
	sp_brain(&sbomb, 12);
	sp_brain_parm(&sbomb, 800);
	sp_noclip(&sbomb, 1);
	sp_seq(&sbomb, 434);
	sp_que(&sbomb, 2000);
	sp_timing(&sbomb, 0);
	playsound(56, 44100, 0, 0, 0);
	
	playsound(57, 44100, 0, 0, 0);
	stopmidi();
	int &seq;
	sp_timing(&current_sprite, 1);
	loop:
	&seq = sp_seq(&sbomb, -1);
	if(&seq > 0)
	{
		wait(1);
		goto loop;
	}