Sir Gak, I think he may be trying to use some of my sample code from my website.
DroolBucket, if you are using the code I wrote, it would be easier if you just copied the code I provided in my FPS example line per line into your code, and THEN modify it to suit you, as opposed to the method you appear to be trying now (which is trying to fit my code in with your already written code).
If you break down what you are asking of the computer in this code you wrote:
What you want is the reverse. You want to find out if the bullet in question collided with the level. To do this, you need to phrase your code like so:
DroolBucket, if you are using the code I wrote, it would be easier if you just copied the code I provided in my FPS example line per line into your code, and THEN modify it to suit you, as opposed to the method you appear to be trying now (which is trying to fit my code in with your already written code).
If you break down what you are asking of the computer in this code you wrote:
;Delete bullet If EntityCollided(level,bullet_col) Then FreeEntity b\image Delete b End Ifyou will find that you are asking it to delete the bullet if ANY bullet (entity type "bullet_col") collided with the level.
What you want is the reverse. You want to find out if the bullet in question collided with the level. To do this, you need to phrase your code like so:
;Delete bullet If EntityCollided(b\image, level_col) Then FreeEntity b\image Delete b End IfNote: replace "level_col" with whatever name it is that you are calling your level entity type.