Hi,
I have a question about the frame177 method, a.k.a. camera movement packet.
this is how it looks:
Code:
public void Frame177(int i1, int i2, int i3, int i4, int i5) {
outStream.createFrame(177);
outStream.writeByte(i1); // X coord within the region middle of your screen will view to
outStream.writeByte(i2); // Y coord within the region middle of your screen will view to
outStream.writeWord(i3); // don't know yet
outStream.writeByte(i4); // the camera speed
outStream.writeByte(i5); // if this goes above 100 the screen turns black immediately
}
the problem is that as soon as I call the method, the camera will continue zooming to the point, until it goes black as it reached a hight below the ground.
Does anyone know how to make the camera stop zooming/moving once it reached a specific distance/time?