efroemling / ballistica

The BombSquad Game Engine
Other
517 stars 101 forks source link

Control Camera For Each Player In Server #574

Open wsdx233 opened 1 year ago

wsdx233 commented 1 year ago

Description

In sever player's camera is out of control,but this situation cause we can't make a game just like "Hide and seek" or more cool games.

Solution

If in Scene V2,we can change each player's camera,just by using a function like this _ba.set_camera_position(client_id = -1,position = (0,0,0)) this will be hopeful for making more fun games!

Dliwk commented 1 year ago

Just referencing here https://github.com/efroemling/ballistica/issues/148:

A fully scriptable camera does sound like a fun idea and could open up some fun new possibilities for mini-games or cut-scene type things and technically wouldn't be too hard to do. However, the one major downside is that the game doesn't always even have direct control of the camera. For instance, in the VR versions of the game, the player is free to move their head wherever they want. If there is an AR version of the game in the future it would be similar. So any minigame/etc. that made heavy use of custom camera positions/etc. would likely look broken on these versions of the game (or would need a way to prevent those players from accessing that mini game).