Slick Forums

Discuss the Slick 2D Library
It is currently Thu May 23, 2013 8:27 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Jul 19, 2012 9:56 am 
Offline

Joined: Thu Jul 19, 2012 9:05 am
Posts: 2
Hi, I'm new to this and i have only knowledge in java...
How do you make this code run after my sound finishes playing?
Code:
boolean attk;
attk = false;
///After my sound finishes playing///
attk = true;

Maybe it will work if the code runs after few seconds but I don't know How...

and if i do ///Thread.sleep(1000);/// it pauses the whole game.

Please Help...


Top
 Profile  
 
PostPosted: Fri Jul 20, 2012 8:16 am 
Offline

Joined: Fri Jul 06, 2012 6:42 am
Posts: 3
in the update() method, have an if-statement that checks whether the sounds finished playing or not (a boolean field should do).


Top
 Profile  
 
PostPosted: Tue Jul 24, 2012 3:13 pm 
Offline

Joined: Thu Jul 19, 2012 9:05 am
Posts: 2
How do you do that, please put a example code...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group