FORUMS: list search recent posts

5 seconds wait

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
5 seconds wait
on May 11, 2007 at 8:08:18 am


I'm working on a project with 4 characters. Each chapter you can play with a different character, but when two of the find each other in the story you can choose which character you want to continue playing with. Waht I'd like to know whether there is a way to wait around 5 or more seconds for the player to chooso the charater, and if he/she hasn't chosen it, the game will automatically choose the last character used.

I hope you understand my question. I'm not used to write in english.

Thanks for your help


Return to posts index

Jeff Penano
Re: 5 seconds wait
on May 17, 2007 at 2:11:06 pm

I would use a setInterval to time the delay calling of a function.

var myInterval:Number;

myInterval = setInterval(autoSelect, 5000); //5000 ms = 5 secs.

function autoSelect(){
//(Select character based on predefined variable)

Return to posts index

Re: 5 seconds wait
on May 17, 2007 at 2:19:30 pm

thanks for your help. I'll try it right away

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved