Register FAQ Search Today's Posts Mark Forums Read
Go Back   JazzJackrabbit Community Forums » Maintenance & Feedback » JJ2+ Issue Tracker

Feature Request Some sort of camera_behaviour function or interface for players

Zero[CDF]

JCF Member

Joined: Jan 1970

Posts: 10

Zero[CDF] has disabled reputation

Nov 29, 2020, 01:32 AM
Zero[CDF] is offline
Reply With Quote
Some sort of camera_behaviour function or interface for players

Let's say the player is swimming/floating, and I implement a transformation that, upon activation, moves the player 32 pixels above where he was in an un-transformed state. Since I can set xPos and yPos in onPlayer(), this is easy. The problem is the camera. I want to be able to say to the camera:
"Keep the normal camera behavior when the transformation is inactive, but when it is active, act as if the player is 32 pixels below his actual position." I can't do that with cameraUnfreeze and cameraFreeze. I tried to, but you always get a noticeable jitter when the transformation activates or deactivates. I think I'd need access to a player's "camera behavior" method, so I can write my own as a wrapper around the default method.
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 06:13 PM.