Comments for Shootorial #3: ActionScript 3

avatar for KimmelGames
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)

avatar for UnknownGuardian
UnknownGuardian

Aug. 10, 2009

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

+ - !

(9)

avatar for randomcomm3nt
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)

avatar for pwnedtyler
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)

avatar for izanami
izanami

Jul. 31, 2010

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

+ - !

(0)

avatar for Annihilator
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)

avatar for Fel_Demon
Fel_Demon

Oct. 22, 2009

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

+ - !

(0)

avatar for eamo2020
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)

avatar for Fishdawg
Fishdawg

Nov. 4, 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)

avatar for sthreet300
sthreet300

Oct. 5, 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)

avatar for KimmelGames
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)

avatar for Zgod
Zgod

Oct. 31, 2009

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

+ - !

(-1)

avatar for Neosano
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)

avatar for Zgod
Zgod

Oct. 3, 2009

Under rating threshold (show)

+ - !

(-3)

avatar for Orangatang91
Orangatang91

Feb. 9, 2010

Under rating threshold (show)

+ - !

(-4)

avatar for GeeGee182
GeeGee182

Nov. 4, 2010

Under rating threshold (show)

+ - !

(-3)

avatar for fozzy410
fozzy410

Aug. 4, 2010

Under rating threshold (show)

+ - !

(-5)

avatar for wertyujh
wertyujh

Aug. 10, 2009

Under rating threshold (show)

+ - !

(-6)

  • add a comment
  • « First
  • 1 - 18
  • Last »