Posted: Tue Aug 30, 2011 3:17 pm Post subject: RE:Shooting Multiple Shots
I believe the issue is that the position of your enemy stays in the same place after it gets hit until the enemy is reused again. To fix that, you can place the enemy in a rediculous spot while it is not being used, like 1000, 2000 or something.
And @[Gandalf] flexible arrays are much less effective, having tried to use them myself. Using a regular array works fine as long as you have a large enough array.
Sponsor Sponsor
[Gandalf]
Posted: Thu Sep 01, 2011 1:43 am Post subject: RE:Shooting Multiple Shots
Using flexible arrays would conceptually remove some of your worries about keeping track of active bullets, which it sounds like is one of the issues here. Performance is secondary to having a working program.
If you're concerned about the performance of Turing's implementation of flexible arrays to the point where it stops you from using them, you might as well not be using Turing. Other languages can do this far better.