Games Achievements My Kong Sign In

Comments for Shootorial #3: ActionScript 3

« Back to Shootorial #3: ActionScript 3

Fishdawg

Nov. 04, 2013

Under rating threshold (show) I don't understand why the code isn't var b:MovieClip = new Bullet() Isn't it an undefined variable if we don't put :MovieClip????

+ - !

(0)

sthreet300

Oct. 05, 2012

Under rating threshold (show) that may be due to copy + paste... also i wonder if c++ can be used in this? (if you konw please send me a messege on my profile)

+ - !

(0)

KimmelGames

Jul. 22, 2011

Under rating threshold (show) @ Orangatang91: The code "Keyboard.SPACE" finds the position in the array (don't quote me on that, It might not be an array) "Keyboard" ("Keyboard" is from that one line "import flash.ui.Keyboard") that is defined by the string "SPACE". At that position is a number. That number is 32. So, using "Keyboard.SPACE" is the same as using "32". So, when you type Key.isDown(32) it goes to the "Key" class that was defined and runs the function "isDown" with the parameter "32". Function "isDown" then returns a boolean value (boolean means true or false). *SOOO*, *if you want to use, say, "X" instead of "SPACE"* then you would have to look up some chart on the internet (I like http://preview.tinyurl.com/3o2wmgm). So instead of using "Keyboard.X", you must use "88" (Why 88? Who knows!). "Key.isDown(88)" is the line of code for you. Don't worry, it's a mistake that just about everyone has made, and I'm no exception. Please rate up if this was helpful.

+ - !

(8)

KimmelGames

Jul. 22, 2011

Under rating threshold (show) Lol. I think that programming is my strong point, not art. I couldn't draw the bullet in the AS2 shootorials. But now it's easy as pie! XD

+ - !

(0)

Annihilator

May. 23, 2011

Under rating threshold (show) I wasn't a big fan of it either when I saw it in the original Shootorial... The part where shootDelimiter gets incremented every frame and set to zero when spacebar is pressed implies that the variable gets incremented unchecked forever as long as someone doesn't press spacebar... Which means it will eventually reach a value that the Number type cannot contain (an Overflow error). Ideally you could set the variable to 0 in the Ship() function, set it to 8 when spacebar is pressed (if the value is 0) and decrement it every frame if its value is not 0, thus stopping the overflow risk

+ - !

(0)

randomcomm3nt

Mar. 17, 2011

Under rating threshold (show) Dear author: please put your opening brace of a function on the line after the declaration. That is all. (Thanks for the tutorials though) :)

+ - !

(1)

GeeGee182

Nov. 04, 2010

Under rating threshold (show)

+ - !

(-3)

fozzy410

Aug. 04, 2010

Under rating threshold (show)

+ - !

(-5)

izanami

Jul. 31, 2010

Under rating threshold (show) better use a KeyboardEvent listener..

+ - !

(0)

pwnedtyler

Jul. 23, 2010

Under rating threshold (show) Great Tut's Moly, its about time someone made an as3 shootorial. I mean Why would Kongregate? Almost all of their new API is AS3 exclusive. So good work 5/5

+ - !

(1)

Orangatang91

Feb. 09, 2010

Under rating threshold (show)

+ - !

(-4)

Zgod

Oct. 31, 2009

Under rating threshold (show) Regarding my previous question, actually it was a keyboard limitation, not code problem.

+ - !

(-1)

Fel_Demon

Oct. 22, 2009

Under rating threshold (show) Nice! The AS3 was a must and now it's here :D

+ - !

(0)

Zgod

Oct. 03, 2009

Under rating threshold (show)

+ - !

(-3)

Neosano

Aug. 11, 2009

Under rating threshold (show) var b = new Bullet(); b.x = this.x; b.y = this.y; this tut is much better than the as2 version, but still I can see some porn... This must be in the constructor!

+ - !

(-1)

UnknownGuardian

Aug. 10, 2009

Under rating threshold (show) The developer has permission to use these. Written Permission.

+ - !

(9)

eamo2020

Aug. 10, 2009

Under rating threshold (show) why would you flag this, if kong arnt guna make an as3 version its about time someone else did

+ - !

(0)

wertyujh

Aug. 10, 2009

Under rating threshold (show)

+ - !

(-6)

  • add a comment
  • « First
  • 1 - 18
  • Last »
Developers Players Support YouTube TikTok X (Twitter) LinkedIn
Join the conversation Join Discord
Terms Privacy Code of Conduct
© 2024 Kongregate