Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi , i need a new option for camera which is , camera follows 2 objects , just like the fighting games . |
||||
|
Hi Abunimer, You can code it yourself. Based on you description, I would try the following approach: 1. add a dummy object (sphere with 0 radius) and attach a follow camera to it; 2. add a behavior to it which: - gets the positions of your objects; - finds a middle point between them; - puts a dummy object from p1 there If you have 2d style camera, i.e. your object positions are fixed on one of the axis you can also move camera closer and further from the dummy object depending on the distance between the objects. The actual implementation and approach depends a lot on what exactly you need to do, since camera can have: - fixed position, or can move; - camera position can change on 1/2 or all 3 axis - camera can rotate or not rotate and etc Even fighting game camera behaves differently in different games, i.e. it moves differently in case your characters only move along one axis, or can step of the axis. Even in that case, you can either actually move your characters or move the arena instead. For example, currently I'm making a top down game there I'm doing something similar, but I'm using a fixed camera, so I only change camera's y coordinate based on the distance between my player's nodes. |
||||
|
Thanks a lot , that was helpfull |
||||
|
i tried the same but how does it work for you guys ?? |
|