postDelayed function for Engine

  ... the case you feel the need for a new feature or want to submit one.

postDelayed function for Engine

Postby sufferer » Fri May 25, 2012 7:46 am

In my game i use this code for delay showing status superhit
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. handler.postDelayed(new Runnable() {
  2.     @Override
  3.     public void run()
  4.     {
  5.         sIcon.setStatus(SuperHitSatus.ENABLED);
  6.     }
  7. }, (long) (10*1000));
Parsed in 0.013 seconds, using GeSHi 1.0.8.4


But user can to set pause and just to wait this time.
How can I to delay some code taking into account playing time?
Game engine needs this function. Or maybe it already exists?
sufferer
 
Posts: 50
Joined: Thu Jun 23, 2011 8:07 am

Return to Features

Who is online

Users browsing this forum: No registered users and 5 guests