FPS Problems :(

Blitz3D Forums/Blitz3D Beginners Area/FPS Problems :(

If one of my bullets collides with the level, then all of my bullets are deleted and I can't quite figure out why. Probably a really dumb reason but can someone help?


Function updatebullets()

For b.bullet = Each bullet

MoveEntity b\image, 0, 0, .5 ;move the bullet
EntityParent b\image, 0


;Delete bullet
If EntityCollided(level,bullet_col) Then
FreeEntity b\image
Delete b
End If


Next

End Function

P.S. this game is in its very first stages