Added: 3 years ago
From: Katocan
Views: 47,527
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (75)

Sign In or Sign Up now to post a comment!
  • Can you zoom out next time please? Also, at LEAST add music or something, it was deafeningly quiet.

    Good video though! Thanks

  • you have a mac, we can relate

  • ty!!! it helped me alot! not so difficult but there are some code i didn't understood before,but now i know it... :)

  • Gee, thank's for being so descriptive in your comments section of the code.

  • didnt worked for me since the symbol converter.. fuck my life...

  • May i ask a question???

    What is the use of var Player:player = new player( ); Player.x = mouseX; Player.y = mouseY; addChild(Player);

    ??? THX

  • @apple1123215 The instance name for the player is "player".In these lines of code what he is doing is that he is creating a new variable Player that will store the instance 'player' in it. To create a new instance he is using the keyword 'new'. Then he wants the x and y position of the player to be the same as x and y position of your cursor. thats what the second line of code does. The last piece of code "addChild(Player);" is used to display the player object on screen. Thats all

  • Oh man, I'm one of those people that collate many questions, so here is question number 1 and 2. At the time 1.35, is the class you are typing in the "main" class? I can’t seem to find your comments on this video in the tutorial blog . com. How do I access this.

  • How Ironic is this? I tried to get my bullets to work in a shooting game i made a few months ago as an assignment, and now I've found this? This could've helped me tremendously. Dang... now i'm gonna get 50% score now... :( and I had 100% attendance as well. I'm annoyed 'cos at Northumbria uni most people were slackers and I was one of the fewest ppl that cared about the course. I only managed to get 13/20 tasks done. Getting multiple bullets to shoot was one task.

  • Flash CS5 as3:

    Line 1: Type was not found or was not a compile-time constant:player.

    Line 1: Type was not found or was not a compile-time constant:bullet.

    Line 15: Call to a possibly undefined method bullet.

    Line 23: Cannot assign to a non-reference value.

    Line 23: Implicit coercion of a value with static type Object to a possibly unrelated type Number.

    Line 1: Call to a possibly undefined method player.

  • @DuxRomanorum and the rest of you who did not get it to work.

    it worked fine for me.

    It's super importent that you write the code EXACTLY like the tutorial shows you, it looks like you forgot to capitalise some of your....ehm for the lac of proper code language... words... like player should be Player and bullet should be Bullet. I'm a noob at this but I got it(on my 3d try).

  • @Ikillboredom

    I know why it didn't work: I had not done the linkage of any object;

    I didn't give the bullet and the player their own class, so actionscript

    didn't know what to do by:' = new player(); '

  • @DuxRomanorum You may have not given the instance names correctly. Open your fla file, select your object and then you should find Instance name somewhere in the properties panel. For player object enter 'player' as the instance name and for bullet enter 'bullet'. (without quotes)

  • its not working waste of ur time please remove this ugly clip

  • Anyone wanna tell me why I have the code for everything copied exactly but it won't work?

  • where did u download this? Was it free?

  • hello . i tried but not getting . m getting this error report :

    Scene 1, Layer 'Layer 1', Frame 1, Line 21 1119: Access of possibly undefined property y through a reference with static type Class.

  • @pramodkabadi24 You are facing errors because you are programming it directly in the frame. Try creating a new .as file and then programming it from scratch. The tutorial itself is not clear(I believe so).

  • GREAT.

    I havent tried it yet. But it's so strait to the core of things! Wish there were more tutorials like that.

  • Did what you showed but a  whole bunch of errors pupped up.

  • i am using flash cs4 action script 3, i get an error saying

    "1086: Syntax error: expecting semicolon before new."

    and that is for the first line of the action,

    "var Player:player new = player();"

    i can't seem to find a solution to the error someone plz help me and thank you

  • @cryptichaxed

    i think its:

    var Player:player = new player();

  • Firing Blanks? lol

  • I would aprecciate if you could do a detailed explanation of comment 5 :X

  • it took me forever to figure out why it wasnt working, he is using MACROMEDIA FLASH, im using adobe flash cs4. anyone know how to do this in cs4?

  • i dnt understand why u dnt just use an instance name instead of adding a child

  • this has an amazingly good result, while being stupendously simple.

    the only new thing i learned was how to spawn an object from the library, and i was searching for that. so thanks

  • Excellent! Exactly what I was looking for. Simple and to the point.

  • Thanks. Its a good example, and yes you do have to change the line 28 from:

    e.target/y -=5;

    to

    to e.target.y -=5

  • looks really gay, and  i did not learn anything

  • can i do this in flash 8?

  • flash 8 only goes up to actionscript 2.0 u need cs3 or cs4 flash for actionscript 3.0

  • Thanks so much!

  • But were have you learned all the commandos , scripting or what it is ''called''

    I dont understand anything , examples ( ' goto and play , < on release, var enter and a lot of more things what do they mean ' were have you learned all the things plz tell if it's a website or in a book ?

  • preach it

  • goto and play means go to a frame of ur choice and on release means the release of ur choice of key makes it do somthing

  • @pudinthemushroomhead The onrelease part means on the release of the left mouse button!

  • can you send me the code please because it says ive got problems

  • So sorrry i accidentilly clicked 1 star i swear i meant to click 5 stars

  • @xLILDxx

    its a helpful tutorial you trolls

  • @xLILDxx Dont worry its now just like XD

  • @iphoneandnick Lol man I posted that comment soo long ago XDD

  • @iphoneandnick Liked btw :)

  • when creating the linkage you should use the fist letter capital by convention

  • Thank you so much... the "removeEventListener" had been haunting me for 3 months!!! Now I knew I need to add "remopveChild" after it... what a relieve now...

  • Is there a way of putting a button into this, so you can click on it? I've tried loading this into a .fla already, and works fine, just i can't click any of the other buttons.

    Any help would be appreciated!

    Thanks - funny game btw.

  • what the hell is the point with this game? :P

  • he doesnt follow the mouse or shoot? i didnt get errors.

  • OMG the line

    e.target/y -=5; give me errors

    can someone help me plz

  • Not without knowing the error.. no.

  • do e.target.y not e.target/y

  • its e.target

  • The mistake is so obvious... Of course it is e.target.y ...

  • how did you make the player disapear

  • i have 6 errors and i have cs4 but it is as3 so it needs to work? strange

    1120: Gebruik van niet-gedefinieerde eigenschap event.

    1046: Type niet gevonden of geen constante bij compilatie. bullet.

    1046: Type niet gevonden of geen constante bij compilatie. player.

    and al of that

  • Dat is faking nederlands, stomme debiel.

  • b'naan

  • @gassiej B'hanger

  • Every time I test my movie, I get this:

    1046: Type was not found or was not a compile-time constant: Player.

    I also get it twice. The other one points towards the bullet.

    Apparently, this is the source:

    var Player:Player = new Player();

    I'm using AS 3.0. Any comments?

  • In the linkage of the player mc, change it from Player, to player, with a lowercase "p", here is what you need to type in:

    var Player:player = new player();

    As3 and as2, also as1, is case sensitive, the rest of the code when you type in the word player, make sure it has a capital "P", okay?

  • e.target/y -=5; ummmmm nO!

  • I get this when I test the movie:

    1180: Call to a possibly undefined method addCild. (twice)

    source: addChild(Player) & addCild(Bullet)

    Any ideas why?

  • It could be because you had "Cild" and not "Child".

  • what is the //comment 1 for?

  • probably to divide up the actionscript so it isnt so overwhelming for new ppl

  • its for comments, it means nothng in programming terms, its so u can keep note on ur script n for stupid peolpe like us

  • I think they were using 2.0. I agree with Pivoty.

  • it didnt work for me

  • What didn't work?

    Did you get any errors?

  • i got like 10. a lot of words that you typed in here didnt turn blue for me even tho its exactly what you typed. i have flash 8 pro

  • probably cause it's actionscript 3.0 and your using 2.0

  • @Katocan On line 28 I had to change it from "e.target/y -=5;"

    to "e.target.y -=5;"

    Once I did that, it worked fine. Thanks for posting.

  • @Katocan

    didn't work for me either

    1046: Type was not found or was not compile-time constant: bullet.

    1180: Call to a possibly undefined method: bullet.

  • Nice but where is the VOICE !!!!

  • This is really clear and easy to follow and helped me a lot, when will part 2 be available?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more