Thread: need help [frame177]

Results 1 to 3 of 3
  1. #1 need help [frame177] 
    Registered Member
    Join Date
    Jun 2014
    Posts
    58
    Thanks given
    2
    Thanks received
    4
    Rep Power
    11
    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?
    Reply With Quote  
     

  2. #2  
    Member of the Imagine Cult

    Join Date
    Feb 2013
    Posts
    519
    Thanks given
    21
    Thanks received
    7
    Rep Power
    59
    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
            if (i5 < 100)
    	        outStream.writeByte(i5); // if this goes above 100 the screen turns black immediately
    }
    Just taking a guess, I might be totally wrong
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2014
    Posts
    58
    Thanks given
    2
    Thanks received
    4
    Rep Power
    11
    Quote Originally Posted by FiveRiverFlo View Post
    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
            if (i5 < 100)
    	        outStream.writeByte(i5); // if this goes above 100 the screen turns black immediately
    }
    Just taking a guess, I might be totally wrong
    thanks I guess, but the blsckscreening isn't the problem. The problem is that the camera keeps zooming to its destination tile until it zooms into the ground.
    Reply With Quote  
     


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. I need help
    By adolfo in forum Tutorials
    Replies: 0
    Last Post: 06-26-2007, 02:58 AM
  2. Need help
    By Saint in forum General
    Replies: 4
    Last Post: 05-20-2007, 02:03 AM
  3. Need help again
    By Zane in forum Showcase
    Replies: 4
    Last Post: 04-02-2007, 09:11 PM
  4. Need help choosing sig
    By Zane in forum Showcase
    Replies: 7
    Last Post: 04-02-2007, 03:14 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
  •