The < 5 is the loop times, change to < 10 to make it loop 10 times, etc.Code:if (command.equalsIgnoreCase("commandnamehere")) { for (int i = 0; i < 5; i++) { stillgfx(gfxid, locationX, locationY); } }
|
I was wondering how to make a GFX loop.. like repeat.
The < 5 is the loop times, change to < 10 to make it loop 10 times, etc.Code:if (command.equalsIgnoreCase("commandnamehere")) { for (int i = 0; i < 5; i++) { stillgfx(gfxid, locationX, locationY); } }
Declare:Add command:Code:private boolean gfxOn = false;Add to process:Code:if (command.matches("gfxswitch")) { gfxOn = !gfxOn; // if on, turn off - if off, turn on }Code:if (gfxOn) { stillgfx(ID, X, Y); }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |