Player / Camera Trick

Posted By: DLively

Player / Camera Trick - 04/25/15 05:13

I have a camera that monitors the players position at all times, and if the player is outside of the cameras view it teleports them on the other side, such as mario bros 2.

Thats all great and groovy, but I don't like that the player disappears off the screen momentarily (since you have to be off-screen to get to the other side).

I'd really like it to be more smooth, so that if the player is showing half his body on one side of the screen, it would show the other half on the other side.

Keeping in mind this is done with 3 dimensions, I tried to have 2 temp players (Just models with animations) on each side of the player just enough so that when the player was on one side, the temp player would be on the other.

This worked fine but the teleport caused it to be slightly jerky, and I didn't like the result.


i now ask you all for some ideas on how to possibly solve this problem, because I really can't think of anything more logical than that attempt.. I can't seem to piece it together..
Posted By: Anonymous

Re: Player / Camera Trick - 04/25/15 06:52

I would place four invisible eNT's around the player so I can start the action when one or more is clipped but before the player. I would ent_create the pre_loaded player model on the opposite side making it a dumb AI simple waking on screen. I would ent_remove the player, then transfer the player pointer to the AI at which point the AI action would become the player action.
Posted By: DLively

Re: Player / Camera Trick - 04/25/15 06:59

Cool, Thanks for the idea Malice laugh
Posted By: Anonymous

Re: Player / Camera Trick - 04/25/15 07:01

It's total crap man, but if it works well, Then yes, I'm awesome. Man I need sleep. lol
Posted By: DLively

Re: Player / Camera Trick - 04/25/15 15:52

Well, The way I plan on innovating that idea should work perfect, I hope laugh
© 2024 lite-C Forums