Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Shooting Multiple Shots
Index -> Programming, Turing -> Turing Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Raknarg




PostPosted: 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
Sponsor
sponsor
[Gandalf]




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 17 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: