How to add delay in function?

Game Editor comments and discussion.

How to add delay in function?

Postby zupernoc » Fri Jun 02, 2006 3:40 pm

Just got GE, loving it. Searching forums and documentation currently on how to add a delay to a script.

I call a global function called "explosion" which does multiple actions. However, I am trying to figure out how to let one sound finish before the next sound plays... I was thinking of adding some sort of delay.

Otherwise, I assume I could just merge the sounds into 1 file.
zupernoc
 
Posts: 17
Joined: Thu Jun 01, 2006 9:12 pm
Score: 0 Give a positive score

Postby irblinx » Fri Jun 02, 2006 3:59 pm

Youd could create timer from your script and then set the timer event on the actor (which executes once the set time delay is finished) to play the second sound
User avatar
irblinx
 
Posts: 122
Joined: Wed Apr 19, 2006 11:15 am
Location: Manchester, UK
Score: 6 Give a positive score

Postby zupernoc » Fri Jun 02, 2006 5:46 pm

Thank you! :D
zupernoc
 
Posts: 17
Joined: Thu Jun 01, 2006 9:12 pm
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest