Thread: [EMULOUS]Facing objects Giving rep++

Results 1 to 4 of 4
  1. #1 [EMULOUS]Facing objects Giving rep++ 
    Registered Member


    Join Date
    May 2008
    Posts
    710
    Thanks given
    42
    Thanks received
    21
    Rep Power
    323
    Does anyone know how can i make a player face a object when u click on it ? Giving rep++ for help.
    Reply With Quote  
     

  2. #2  
    XAFBX
    Guest
    You would use this method..

    Code:
    public void turnPlayerTo(int pointX, int pointY){
          FocusPointX = 2*pointX+1;
          FocusPointY = 2*pointY+1;
    	  updateRequired = true;
        }
    Make it face the objects x and y coords.
    Reply With Quote  
     

  3. #3  
    Registered Member


    Join Date
    May 2008
    Posts
    710
    Thanks given
    42
    Thanks received
    21
    Rep Power
    323
    Code:
    				case 2513:
    server.model.players.Player.turnPlayerTo(2555, 2555);
    c.fireProjectileObject();
    break;
    }
    Tryed, got an error :

    Reply With Quote  
     

  4. #4  
    XAFBX
    Guest
    Quote Originally Posted by Problem View Post
    Code:
    				case 2513:
    server.model.players.Player.turnPlayerTo(2555, 2555);
    c.fireProjectileObject();
    break;
    }
    Tryed, got an error :

    Erm, wtf are you doing?
    Code:
    server.model.players.Player.
    its
    Code:
    c.turnPlayerTo(c.objectX, c.objectY);
    In your caseput those object coords insetad of objectX and objectY
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •