Follow me as I recreate the "Alpha_Sector" flash game in Actionscript 3.0
http://www.newgrounds.com/portal/view/354813 - Play it
You will hear my thoughts and my thinking process each step of the way, I'm winging this series for your benefit, you can see how I debug odd problems and understand what I chose to code something the way I did.
In the last part of this session (part 9), I finish up the shotgun, and point out a wierd bug with the shooting.. Who knows when I'll start up the next session. I can't believe you actually watched up to this video, congrats, hope it was worth it. Subscribe =P.
By the end of the first hour you will have a player running around the screen with 3 different types of guns, and know how to add another gun in just a minute flat. If you find this a bit boring or slow at times, feel free to skip around! There's a lot of content
I know the problem of the bullet bug =)
for(var i:Number = 0; i < bullets.length; i++) { if(bullets[i].Update()) { drawTarget.removeChild(bullets[i]); bullets.splice(i, 1); i--; // <- if you delete a part of the array and splice it one bullet don't update. for example (bullet[20] will be deleted and bullet[21] is after the splice the number 20 but the i is now 21 because of the i++. } }
btw. nice tutorial thx
Clockdealer 3 months ago
awesome tut dude many thx :)
G0ld3nB4lls 1 year ago
Hey thanks a lot for throwing these together. Looking forward to any of your future projects you decide to post.
akashibito 1 year ago
congrats! great job man, that's really cool, i'm starting in actionscript, and it's being hard for me, can you give an advice for improving it!? cheers!
chapin1989 1 year ago
Great job dude :)
keep it up
ThefabolousOne 2 years ago