(Pixel perfect or instant-hit bullets)
+Bullet.count > 0
+For "" from 0 to 5
-Move Bullet 60*dt in angle of Bullet
+On loop ""
+Bullet collides with solid
Interesting. I was about to end up with a pretty complex algorithm but i decided to take a look at your snippet of code. However, like megatronx, i don't fully understand the logic behind this snippet of code.
From my understanding... you seem to use the loop for detecting if the bullet collide with the wall. Why? Plus, isn't Bullet collide a triggered event ?
-Move Bullet 60*dt in angle of Bullet [/code:1w11h5hx]
So your not using the behavior, your doing it manually. Is there a reason for this ?
Other than that... i found a way of doing it. Put a detector in front of your bullet (pixels ahead) when it hit the wall it stand still until the bullet reach the wall, during that time you can adjust the position of the detector and when the bullet hit finally the wall, destroy the detector and create the bullet impact at his location. The detector must match the same bullet trajectory for this to work. So for direct trajectory this would be easy..