Camera and sprites

Blitz3D Forums/Blitz3D Programming/Camera and sprites

Mr. Slat(Posted 2007) [#1]
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?


Stevie G(Posted 2007) [#2]
EntityParent Sprite, Camera
positionentity Sprite, 0,0,10 ; adjust the 10 as required

Stevie


Mr. Slat(Posted 2007) [#3]
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


big10p(Posted 2007) [#4]
Set SpriteViewMode as required.


Mr. Slat(Posted 2007) [#5]
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...


boomboom(Posted 2007) [#6]
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.


Mr. Slat(Posted 2007) [#7]
Thanks


Stevie G(Posted 2007) [#8]
I give up!!


Jason W.(Posted 2007) [#9]
haha

Not trying to be mean, but that was funny.

Jason


boomboom(Posted 2007) [#10]
lol


big10p(Posted 2007) [#11]
*chuckle*