Collision Sprite with Image
Blitz3D Forums/Blitz3D Programming/Collision Sprite with Image
| ||
Hi, I am using another mouse pointer (Bitmap) in order to shoot animated bitmaps - collision works fine. Is it possible to use sprites (LoadSprite()) instead of Images for my target as well ? How can I check the collision between Image (LoadImage(..)) an dthe entity of the sprite ? Regards Robert |
| ||
The difference is, 2D bitmap images are placed over the front of the screen. 3D sprites are actually placed in a 3D world. They are only displyed to the screen through an effective camera. There is no real connection between the two visual types. However, with careful use of commands such as CameraProject and MousePick, you should be able to convert coordinates between the 3D world and the 2D screen. |
| ||
if your using the BMP as a mouse pointer, Why not using CameraPick? |
| ||
Hi, I used the command LoadImage("target.bmp") for my mouse pointer. So you're right. Using another image (BMP) as target to shoot I can use ImagesCollide(...). Using an entity (e.g. mesh) as target I can use the command CameraPick(...). Works fine.... Thxs for your answer |