I seem to have a problem using the collisions command to stop projectiles when they collide with other objects. It appears that the projectiles don't stop AT the object but BEFORE the object less than X UNITS away. 'X UNITS' is whatever distance I tried to move the projectile during the last loop.
I am using the collisions command in this manner:
The bullet entities are created dynamically as they are fired. As you can see, I am using method 1 (stop) as the response when projectiles collide with the wall or targets.
Does anyone have any ideas why they would stop short? This isn't the impression that the docs gave me how it would work.
I am using the collisions command in this manner:
;entity types ;1 = Player ;2 = Walls ;3 = projectiles ;4 = targets EntityType Player, 1 EntityType Wall, 2 Collisions 1, 2, 2, 2 Collisions 3, 4, 2, 1 Collisions 3, 2, 2, 1 later on... EntityType bullet, 3
The bullet entities are created dynamically as they are fired. As you can see, I am using method 1 (stop) as the response when projectiles collide with the wall or targets.
Does anyone have any ideas why they would stop short? This isn't the impression that the docs gave me how it would work.