Camera and sprites
Blitz3D Forums/Blitz3D Programming/Camera and sprites
| ||
I have a movable camera, and I wanted to have a sprite always in front of the camera... I can make the sprite move along with the camera, but when I turn it, there's the problem. Any help please? |
| ||
EntityParent Sprite, Camera positionentity Sprite, 0,0,10 ; adjust the 10 as required Stevie |
| ||
yes but that's not my problem..... when I make turnEntity Cam or rotateEntity How can I make the sprite stays always in front on the camera |
| ||
Set SpriteViewMode as required. |
| ||
And its assigned as 1. I just position the sprite like this PositionEntity Sprite(1), EntityX(Camera), EntityY(Camera), EntityZ(Camera)+6 but can't figure out how to draw it always in front of the camera. Even when I turn it, rotate it or translate it... |
| ||
If your sprite is parented to your camera, you don't need to use any more movement or rotation commands on it for it to stay where it is, it will just automatically be 'locked' to the camera. |
| ||
Thanks |
| ||
I give up!! |
| ||
haha Not trying to be mean, but that was funny. Jason |
| ||
lol |
| ||
*chuckle* |