you could use the bone bury delay, that might work depending how long the teleport is
|
Hey guys!
I made a new teleport animation. Now, I wanna know how i can make the gfx happend like 2 seconds after the animation.
THis is my animation
I want it so the explosion GFX happens when he like jumps! I tried this
But the gfx still happens right away...Code:if (teleportType.equalsIgnoreCase("modern")) { c.startAnimation(1914); c.teleTimer = 10; if(System.currentTimeMillis() - c.gfxDelay > 2000); c.gfx100(287); c.teleEndAnimation = 715; c.gfxDelay = System.currentTimeMillis(); }
Plese help, rep++ and thanks
you could use the bone bury delay, that might work depending how long the teleport is
Here's an example
Code:public void dungemote() { EventManager.getSingleton().addEvent(new Event() { int dungtime = 16; public void execute(EventContainer dung) { if (dungtime == 16) { gfx0(2442); startAnimation(13190); } if (dungtime == 15) { npcId2 = 11228; isNpc = true; updateRequired = true; appearanceUpdateRequired = true; startAnimation(13192); } if (dungtime == 10) { npcId2 = 11227; isNpc = true; updateRequired = true; appearanceUpdateRequired = true; startAnimation(13193); } if (dungtime == 6) { gfx0(2442); } if (dungtime == 5) { npcId2 = 11229; updateRequired = true; appearanceUpdateRequired = true; startAnimation(13194); } if (dungtime == 0) { npcId2 = -1; updateRequired = true; appearanceUpdateRequired = true; } if (dungtime <= 0) { dung.stop(); return; } if (dungtime >= 0) { dungtime--; } } }, 600); }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |