How do I use sprites?

Blitz3D Forums/Blitz3D Beginners Area/How do I use sprites?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Maybe this will help.
This is a Function that I made for this action (it doesn't work the way I want):
Function burst(gun)
gunflash=LoadSprite("Burst 1.bmp")
EntityParent gunflash,gun
PositionEntity gunflash,EntityX(gun,1)-10,EntityY(gun,1)+80,EntityZ(gun,1)
RotateEntity gunflash,EntityPitch#(gun,1),EntityYaw#(gun,1),EntityRoll#(gun,1)
flash=Millisecs()
If Millisecs()<flash+1000
ShowEntity gunflash
Else
HideEntity gunflash
EndIf
End Function 


If you need to know where I said to activate the function then tell me.
Also, when I move around the terrain, the sprites keep popping up in different places.