Blockland Forums > Suggestions & Requests
2D Playertype
Crispy_:
--- Quote from: Legoboss on July 09, 2013, 11:44:39 AM ---Link?
--- End quote ---
--- Quote from: Aide33 on July 08, 2013, 11:24:31 AM ---http://www.youtube.com/watch?v=ZmDjMvkcpI4
??
frankly, I have no idea what I was doing, I was messing around with code for cameras and I got this
--- End quote ---
imo the towards/away from camera movement can be fixed with invisible walls at both sides, however the only thing i feel should be added is a more zoomed out camera
Electrk:
It's pretty easy to do, actually. You just need to figure out how to get the camera to look at the player's right side initially.
Aide33:
--- Quote from: Electrk on July 09, 2013, 01:46:02 PM ---It's pretty easy to do, actually. You just need to figure out how to get the camera to look at the player's right side initially.
--- End quote ---
Yeah it's kinda random at the moment on what side it faces
--- Quote from: Crispy_ on July 09, 2013, 01:31:28 PM --- more zoomed out camera
--- End quote ---
that can be fixed
Electrk:
--- Code: ---function serverCmd2DTest(%client)
{
%camera = %client.camera;
if(!isObject(%player = %client.player) || !isObject(%camera))
return;
%camera.setFlyMode();
%camera.mode = "Observer";
%camera.setTransform(%player.getTransform());
%client.setControlObject(%camera);
%camera.setControlObject(%player);
%mat = MAGIC EQUATION;
%camera.setOrbitMode(%player, %mat, -10, 0, 0, 0);
}
--- End code ---
Legoboss:
--- Quote from: Electrk on July 09, 2013, 03:56:02 PM ---
--- Code: ---function serverCmd2DTest(%client)
{
%camera = %client.camera;
if(!isObject(%player = %client.player) || !isObject(%camera))
return;
%camera.setFlyMode();
%camera.mode = "Observer";
%camera.setTransform(%player.getTransform());
%client.setControlObject(%camera);
%camera.setControlObject(%player);
%mat = MAGIC EQUATION;
%camera.setOrbitMode(%player, %mat, -10, 0, 0, 0);
}
--- End code ---
--- End quote ---
:o
How do I use this