FPS Problems :(

Blitz3D Forums/Blitz3D Beginners Area/FPS Problems :(

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.

use [ code ] and [ /code]

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


But your collision check doesn't make sense to me.

You must mean
Function updatebullets()
For b.bullet = Each bullet
MoveEntity b\image, 0, 0, .5 ;move the bullet
EntityParent b\image, 0

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