Blockland Forums > Modification Help
2D player type
Pages: (1/1)
Cubelands:
I am not sure correct or wrong.
--- Code: ---GameConnection::nextCamTarget
{
minJetEnergy = 0;
maxForwardSpeed = 0;
maxBackwardSpeed = 0;
maxLeftSpeed = 10;
maxrightSpeed = 10;
jetEnergyDrain = 0;
canJet = 0;
cameramaxdist = 20;
cameramindist = 0;
maxlookangle = 0;
cameratilt = 90;
maxlookangle = 0;
minlookangle = 0;
cameraMaxFov = 90;
thirdpersononly = 1;
%rot = "1 0 0 0";
showEnergyBar = false;
};
--- End code ---
I created it for 2D player type.
%rot = "1 0 0 0"; are at North face camera.
maxLeftSpeed = 10; and maxrightSpeed = 10; are sideway.
I did test it has error. I look at console come up nothing say errors, that werid. It should be worked but not :C
Port:
Are you trying to define a function (GameConnction::nextCamTarget)? You need to use the function keyword and an argument listing. Although, it does seem like you are trying to define a player datablock. Use datablock playerData(objectNameHere) for that.
Oh, and some other things:
rot is not a datablock member field the engine uses.
Member fields do not use context indicators (%/$).
In any case (also an extension to addition #1), you cannot rotate a player's camera on the Z axis with a datablock.
Pages: (1/1)