Author Topic: 2D Playertype  (Read 3051 times)


send me the playertype :v

http://forum.blockland.us/index.php?topic=225186.0
But they asked for a playertype.
Still, that's a good idea if we can't make playertypes like these.

I made a suggestion about this a long time ago, and in fact contacted Space Guy about it back in March. I never found out what he meant by this.

Anyway, I think 2D cameras should work a lot like they do in games like the Paper Mario series, most notably the first and second of the games (4th is pretty similar too I guess, minor changes).

decent gameplay video I found

Just skip around to whenever Mario is just walking around and you'll see what I mean.
That's exactly what I did, the only problem is you can't prevent the player from walking towards the camera or away from it

That's exactly what I did, the only problem is you can't prevent the player from walking towards the camera or away from it
Link?

Link?
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

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

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.

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.
Yeah it's kinda random at the moment on what side it faces
more zoomed out camera
that can be fixed

Code: [Select]
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);
}

Code: [Select]
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);
}
:o
How do I use this

Code: [Select]
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);
}
how did you get my code
/sarcasm

Seriously, this is pretty much how I did it, if anyone wants to use it to make a player type, feel free



You guys made my day :D

iirc impossible.
Technically yes... But the way they want it, no

Aaaaaand I'm late once again