do you mean it is in the players cycle (process) method?
of course it's going to flicker, you are sending that packet to the client every cycle period, causing the client to remove the current interface, replace it with the same one, and redraw it.
|
Having problems with my interfaces, I can't stop it from flickering. The interface at the top left flickers every second while im attacking npcs.
In process of course.
Code:if (!this.inWild() && !this.inNMZ() && !this.inDuelArena()) getPlayerAssistant().walkableInterface(-1); if (inNMZ()) getPlayerAssistant().walkableInterface(4970);
do you mean it is in the players cycle (process) method?
of course it's going to flicker, you are sending that packet to the client every cycle period, causing the client to remove the current interface, replace it with the same one, and redraw it.
send it only when it needs to, you should implement a proper location system so it isn't getting called every cycle. packet 126 will update the text without the need to resending the interface. if you don't want to do that, just add a boolean or something to see if the interface is already open.
not the best way to do it, best would be as i said proper location system and ui assistant to know what interfaces are open.Code:if(inNMZ()) { if(!whatever) { sendInterface(blah): whatever = true; } }
put it in your clients process() method... i did this for my walkable interfaces and it works fine.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |