displaying health & ammo?
Blitz3D Forums/Blitz3D Programming/displaying health & ammo?
| ||
How would I create a display showing ammo, health, etc. in blitz3D? I will be using various sprites and blitz3d's print function, but i don't know how i would make it so that the sprites "follow" the camera, and don't just disappear when the camera moves. |
| ||
Parent the sprites to the camera. I won't use the b3d print function tho. Go for the text command just now, but it known to make some ppl's computers go slow. You could use bitmapped fonts tho :) |
| ||
A great idea is to check out the pixies demo in the code archives. That parents sprites to the camera but ensures they're drawn exactly as loaded in, so you can still use alpha commands and the like to keep things pretty. |
| ||
you want this: http://www.blitzbasic.com/codearcs/codearcs.php?code=456 I use it in all my projects. |