InterpolateCameraPos
#1

Hello there. I have made my re/log system and I want to make moving cammera when player whants to reg/log. This is my code:
Код:
if(fexist(UserPath(playerid)))
    {
        InterpolateCameraPos(playerid, 2462.3000488281, -1659.0999755859, 15.60000038147, 2353.5, -1659.0999755859, 15.60000038147, 100000, CAMERA_MOVE);
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
    }
    else
    {
        InterpolateCameraPos(playerid, 2462.3000488281, -1659.0999755859, 15.60000038147, 2353.5, -1659.0999755859, 15.60000038147, 100000, CAMERA_MOVE);
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
    }
But I have this problem IG:

http://i.imgur.com/WnxBT.jpg#.UJLTzG_A82s

How to fix it?
Reply
#2

This happens when the player "body" isn't close enough to the point you are watching with your camera.
You have to put the ped closer to the position that is being viewed, depending on the distance of the interpolated traject this can still give problems which you will have to fix by teleporting the ped closer to the camera occasionally.

That's the easiest I can explain it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)