Thread: [718] Delaying gfx/anims by the millisecond

Results 1 to 2 of 2
  1. #1 [718] Delaying gfx/anims by the millisecond 
    Registered Member
    Join Date
    Jun 2015
    Posts
    323
    Thanks given
    21
    Thanks received
    11
    Rep Power
    7
    I'm trying to set a certain gfx with a delay, is there any way i can set one with the exact delay i want?
    Most methods in matrix offer whole number delays,

    im looking to be able to set a gfx, for example 0.252 seconds after intitiated,

    something like this

    Code:
    case "delaytest":
    player.setNextAnimation(new Animation(4230));
    player.setNextGraphics(new Graphics(3027)); //trying to get this gfx to display 0.25 seconds after now, not staight away
    return true;
    goal:


    progress:
    [Only registered and activated users can see links. ]


    thanks rep+
    Reply With Quote  
     

  2. #2  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,556
    Thanks given
    652
    Thanks received
    640
    Rep Power
    358
    Quote Originally Posted by new2rsps View Post
    I'm trying to set a certain gfx with a delay, is there any way i can set one with the exact delay i want?
    Most methods in matrix offer whole number delays,

    im looking to be able to set a gfx, for example 0.252 seconds after intitiated,

    something like this

    Code:
    case "delaytest":
    player.setNextAnimation(new Animation(4230));
    player.setNextGraphics(new Graphics(3027)); //trying to get this gfx to display 0.25 seconds after now, not staight away
    return true;
    goal:


    progress:
    [Only registered and activated users can see links. ]


    thanks rep+
    Code:
    CoresManager.slowExecutor.schedule(new Runnable() {
        @Override
        public void run() {
            player.setNextGraphics(new Graphics(3027)); 
        }
    }, 250, TimeUnit.MILLISECONDS);
    Project thread
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. Thankful user:



Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 28
    Last Post: 09-06-2014, 01:41 AM
  2. Replies: 1
    Last Post: 10-29-2013, 05:53 PM
  3. [718] Bandit Combat GFX/Anims
    By Mayne in forum Requests
    Replies: 1
    Last Post: 07-25-2013, 11:59 PM
  4. 718 gfx/anims ids
    By helpMe in forum Requests
    Replies: 7
    Last Post: 06-07-2013, 06:45 AM
  5. Replies: 4
    Last Post: 12-16-2010, 08:13 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •