I realised while lying in bed last night that there is no reason to have the arrays keeping track of the x and y values of the bullets, because those values can be taken from the bullets on screen once they've been created. So I got rid of those arrays and changed all references to bullet_xs[] and bullet_ys[] to _root.['bullet_'+bullet_IDs[a]]]._x and ._y. Its always better to reduce the number of variables and arrays used in the program to conserve memory. I mean, this particular change will probably make very little difference to the memory usage of this game, but it's better practice, so I changed it.
Also, I'm not going to be doing any more work on the game until after the weekend, so it'll be a few days until the next post. I just wanted to say thanks for all the comments, I'm glad you guys are interested and enjoying the blog!
Have a good weekend everyone, and I'll still be checking everyone's blogs over the weekend even if I'm not posting.
Oh, one more thing, if you like the blog and you use stumbleupon you should thumb me up!
Oh, one more thing, if you like the blog and you use stumbleupon you should thumb me up!
certainly enjoying! can't wait for your updates
ReplyDeleteI don't have stumbleupon...
ReplyDeleteBut man, you ARE a find~! I've been thinking about getting back into programming, even a little bit, and tech posts like this are doing nothing but slaking my thirst for coding.
Followin' ya, will check ya out further!
Thumbing you up once I make an account, because you put a lot of effort and its interesting stuff, dude.
ReplyDeleteive been looking to become a programmer of a sort, im trying to learn javascript right now.
ReplyDelete@That Bastard From Bellingham - I know what you mean, theres something about coding that just gets under my skin! I really enjoy the challenge and then when you get something to work properly, it's like "YEAH! I did that!". I dunno it's awesome.
ReplyDeleteThanks for commenting.
@Genetics Thanks for commenting, and thanks for the encouragement! I'm glad you enjoy it.
ReplyDelete@Jack Good luck with it, if you're like me you'll really enjoy it.
interesting, im new to this blog but its very cool! im excited to see an end product
ReplyDeleteNice to see a fellow game dev blogging about the technical stuff. I'll be following this one.
ReplyDeleteWhen I tried to make a game in flash I failed horribly. It looks like you're going great, don't give up!
ReplyDeleteI love amatuer programmers, we can related :D
ReplyDeleteHave a good weekend mate, will look forward to future posts and seeing the game developing!
ReplyDeletethats nice, keep it up!
ReplyDelete+followed
I hope you make progress on your project. Good luck!
ReplyDeletenice, looking forward to ya updates!
ReplyDeleteHave a good weekend yourself, mate! :)
ReplyDeleteNot what I normally keep up with, but I may learn something :D
ReplyDeleteFollowing
hey ill thumbs up you, bro. good blog
ReplyDeleteYeah, the best programmers are not the ones who can write a lot of scripting but the ones who can make big things by writting only a little!
ReplyDeleteThat's great man, and it's fun to see your progress through your website! Keep it up!
Yeah I definitely need to get better at writing efficient code I think!
ReplyDeletedude this is so useful. so glad I followed:)
ReplyDelete