Comments for Shootorial #2

avatar for Noahx44
Noahx44

Jun. 15, 2014

Under rating threshold (show) Here's the thing. These tutorials aren't correct. They give misleaded information about the code its self leading you to believe that certain things don't belong. I spent an entire day trying to figure out why the ship wouldn't go right when I pressed the right button but it just so happens that the code was wrong. It leaves important parts out as well such as the fact that you HAVE to save before you test or it won't work. Though they do provide you with the basic script. You might have to do a little bit of fixing but the scripts work if you figure out the problem.

+ - !

(0)

avatar for PressTiege
PressTiege

Feb. 22, 2014

Under rating threshold (show) ☺ ☻ ♀ ♂ ♥ ♫

+ - !

(1)

avatar for MrDruidek
MrDruidek

Jan. 17, 2014

Under rating threshold (show) gg

+ - !

(2)

avatar for rayhon
rayhon

Dec. 27, 2013

Under rating threshold (show) Im haveing some issues with this one, I keep getting error 5007: An ActionScript file must have at least one externally visible definition. on my Background.as Any help would be greatly appreciated

+ - !

(6)

avatar for c3bp
c3bp

Sep. 12, 2013

Under rating threshold (show) what do i do if i want the background to move vertically using _y? i tried changing _x to _y but it wont loop. help.

+ - !

(2)

avatar for classicangel831
classicangel831

Jun. 7, 2013

Under rating threshold (show) If you're having issues with the background looping (get the white space between the two), make sure you've done Step 3 on page 8.

+ - !

(2)

avatar for gamerboss1996
gamerboss1996

Jan. 16, 2013

Under rating threshold (show) I'm at the part where you have to copy then paste in place. when i scroll down when i test it my ship disappears behind my background. whats my problem?

+ - !

(0)

avatar for Guiziin
Guiziin

Sep. 18, 2012

Under rating threshold (show) its nice game ?

+ - !

(-2)

avatar for MoNstERs
MoNstERs

Sep. 14, 2012

Under rating threshold (show) If your ship flying off the screen bothers you, try this: You can put in this little line of code to your "Ship.as" file anywhere in the "onEnterFrame" function. Type: if(_x<20) { _x = 20; } ....for example, this will prevent your ship from flying off the stage on the left side. You can do other ones too (replace x with y to prevent flying off the top and bottom) play with the numbers till you get a boundary you are happy with :]

+ - !

(3)

avatar for MrRabid
MrRabid

Aug. 20, 2012

Under rating threshold (show) how do i flash?

+ - !

(0)

avatar for a1337panda
a1337panda

Jul. 13, 2012

Under rating threshold (show) How do i code it so that as time goes on, the speed of my background will increase?

+ - !

(0)

avatar for Frankwurst
Frankwurst

Jun. 17, 2012

Under rating threshold (show) I used flash in the premodern times, without action script. Thanks for this tutorial and make me feel "in control" again (at least less ignorant)

+ - !

(0)

avatar for assassin153
assassin153

Apr. 29, 2012

Under rating threshold (show) Fixed it. Trial and error, you learn more..

+ - !

(0)

avatar for assassin153
assassin153

Apr. 29, 2012

Under rating threshold (show) I got it working for the most part but I got one major error......If I move my ship right the ship goes right but the camera goes left...if I go left camera goes right and ship goes left?

+ - !

(2)

avatar for Fishdawg
Fishdawg

Mar. 8, 2012

Under rating threshold (show) Why did the ship movieclip have to be registered with the dot in the middle but the background has the dot registered at the top left. What does that do?

+ - !

(3)

avatar for thunbear
thunbear

Feb. 12, 2012

Under rating threshold (show) Well I got it by setting _x = 4220; Which doesn't make sense, since that should send it 4220 pixels in front of my ship, but oh well, it's working so I'll work on figuring that out later.

+ - !

(-1)

avatar for thunbear
thunbear

Feb. 12, 2012

Under rating threshold (show) For some reason I can not get a seamless loop. When I set if (_x < -2110) { _x = 0; } It sill waits till it gets to the end of the backround before resetting. I even tried putting 4 backrounds next to each other, so it continues to 8440 pixles, but it still does not reset at 2110. It scrolls through the whole backround getting to the end and going blank before resetting _x = 0; no matter how I try and tweak it.

+ - !

(3)

avatar for TheSupaHobo
TheSupaHobo

Jan. 10, 2012

Under rating threshold (show) I can't seem to import the background. It keeps saying that it did not finish due to unknown error. Any ideas? :S

+ - !

(-1)

avatar for R3vqq
R3vqq

Jan. 10, 2012

Under rating threshold (show) I cant seem to download any of the things, i click the click here line and all but nothing opens up. Where should i be clicking or what am i doing wrong ? ;s

+ - !

(-1)

avatar for currosonido
currosonido

Jan. 2, 2012

Under rating threshold (show) I´ve learned to develop my own games with this!!! Understand all 8 levels and you will have a great knowledge about actionscript programming. This is a full example:"http://www.kongregate.com/games/currosonido/ornithophobia"

+ - !

(3)

avatar for Kadirz
Kadirz

Oct. 25, 2011

Under rating threshold (show) ive studied java but this still is something else, and at certain points it is not explained really good.

+ - !

(0)

avatar for zeth415
zeth415

Oct. 14, 2011

Under rating threshold (show) I have just came to love these tutorials. Almost every other tutorials assumed that everybody had studied programming before... really, really, thank you

+ - !

(7)

avatar for benoz11
benoz11

Oct. 10, 2011

Under rating threshold (show) Brilliant tutorial for the absolute basics. I was struggling to find a tutorial that actually explained each command instead of just telling me what to write, but this is perfect for the beginner to learn not copy :D

+ - !

(2)

avatar for ErboX
ErboX

Sep. 19, 2011

Under rating threshold (show) k I figured it out, the picture wasn't lined up when I converted it into a movieclip. I deleted it and converted it again and that fixed it. Still curious if you can fix it without deleting it though.....

+ - !

(0)

avatar for ErboX
ErboX

Sep. 19, 2011

Under rating threshold (show) Hey I have a minor problem, when I position the background so that the left edge is on the left edge of the stage, the x and y coordinates aren't 0....I can compensate for this in the code, but I find it kind of annoying, is there a way to fix this? I'm pretty sure I chose top left for the register....

+ - !

(0)

avatar for misael393
misael393

Sep. 5, 2011

Under rating threshold (show) 1) Double click on the background movie clip to go "inside" of it. That's what she said. :P

+ - !

(0)

avatar for Tiger99
Tiger99

Sep. 1, 2011

Under rating threshold (show) FUN LOLOLOLOLOL :D

+ - !

(3)

avatar for legomyhobo
legomyhobo

Aug. 9, 2011

Under rating threshold (show) like in the last tutorial, make sure the B in the class background is the same as the saved background.

+ - !

(1)

avatar for hamuka
hamuka

Jul. 31, 2011

Under rating threshold (show) @hamuka: I refreshed Flash, then the background could scroll. So never mind my first comment.

+ - !

(0)

avatar for hamuka
hamuka

Jul. 30, 2011

Under rating threshold (show) My background won't scroll... :(

+ - !

(0)

avatar for Gheata
Gheata

Jul. 20, 2011

Under rating threshold (show) "ugh. background class cannot be found even though it is in the same folder. any help?" Save the actionscript file as Background.as (if you registered the background with symbol and class Backgroud)

+ - !

(0)

avatar for chumponimys
chumponimys

Jul. 19, 2011

Under rating threshold (show) Here's a quick upgrade to the code that will make the background a bit more interactive. Just make sure to move the background down a few pixels first (you'll see why): class background extends MovieClip { function onEnterFrame() { _X -= 2 if (_x < -2110){ _x = 0 } if (Key.isDown (Key.RIGHT)){_x -= 3 } if (Key.isDown (Key.LEFT)){_x -= 1} if (Key.isDown (Key.UP)){_y += 1} if (Key.isDown (Key.DOWN)){_y -= 1} } }

+ - !

(0)

avatar for Gheata
Gheata

Jul. 18, 2011

Under rating threshold (show) If you have errors always save. after saving you will see that if you made everything alright, it will work just fine :)

+ - !

(0)

avatar for lego_pi
lego_pi

Jul. 10, 2011

Under rating threshold (show) To those whose backgrounds don't scroll: When you first set the background as a symbol, did you move the registration to the top left corner? The center is the default, and it's wrong. Redo the symbolizing but make sure that when you see the 3x3 grid of tiny squares, the top left is black. If not, click it. When you copied the background image, did you do it right? Make SURE you followed page eight (step 1) very closely. Simply adding another instance of Background doesn't work, for some reason. Hope this helps!

+ - !

(1)

avatar for Jawburger
Jawburger

Jul. 2, 2011

Under rating threshold (show) @Emilade , first, is the code on your "Ship Class" Coding? if not, was the "background class" coding applied to your ship?

+ - !

(0)

avatar for Tman813
Tman813

Jun. 24, 2011

Under rating threshold (show) ugh. background class cannot be found even though it is in the same folder. any help?

+ - !

(0)

avatar for Jawburger
Jawburger

Jun. 24, 2011

Under rating threshold (show) Also, i am trying to make it use WASD in stead of the arrow keys, i know, that was last shootorial but i dont care. Instead of the "LEFT" keycode, i put A, but it doesn't work, says "A is not a valid keycode" and doesnt work. What ore the keycodes for letters? KEYW? KEYA? or just W? A?

+ - !

(1)

avatar for Jawburger
Jawburger

Jun. 24, 2011

Under rating threshold (show) okay, i've been doing well in all fo the other shootorials except this. First: I have CS5.5 because CS3 is old and cant be downloaded anymore, and i think that might be a cause to my troubles My problems are: My background moves with my ship. I press left, it goes left too, press up, it goes up too etc. It still scrolls but it also follows my ship. Second, I cant get the Background to get the seamless Background, it gets the white area on the left of the screen after the picture is done. I did all the things the tutorial said, but as i said, i have CS5.5 so i think thats the problem.

+ - !

(1)

avatar for Cozythrias
Cozythrias

Jun. 4, 2011

Under rating threshold (show) not being able to understand the codes in this tutorial, you won't be able to troubleshoot your way out of your problem, make your own background make your own ship don't use the same width and height and you will find yourself troubleshooting and learning at the same time.

+ - !

(20)

avatar for Cozythrias
Cozythrias

Jun. 4, 2011

Under rating threshold (show) nah reading is the only thing you need to do, understanding the whole codes from the start from zero knowledge ain't that easy. this site just need more people that READS

+ - !

(2)

avatar for Emilade
Emilade

May. 23, 2011

Under rating threshold (show) I got all the way through frame 5 of the tutorial, and when I tested the movie as suggested my ship flew to the left instead of the background. I still have full control of the ship with the arrow keys, though. I'm sure there's something I've missed or not done right, but for the life of me I can't figure out what it is. The code that I have is exactly the same as in the tutorial. Can anybody help me?

+ - !

(1)

avatar for Somentus
Somentus

May. 21, 2011

Under rating threshold (show) class Background extends MovieClip { function onEnterFrame() { _x -= 1; if(_x < -2110) { _x = 0; } } } I'm using this as code for the background but it won't loop, can anyone help me?

+ - !

(-1)

avatar for Chuckles56
Chuckles56

May. 12, 2011

Under rating threshold (show) Awesome!

+ - !

(-1)

avatar for XAXA
XAXA

May. 12, 2011

Under rating threshold (show) Have you tried reading?

+ - !

(0)

avatar for Tman813
Tman813

May. 8, 2011

Under rating threshold (show) PLEASE message me if you have the answer to this. There is a random ass white line in front of my ship. How do I get rid of it?

+ - !

(0)

avatar for del5269046
del5269046

May. 3, 2011

Under rating threshold (show) Hi there guys I was wondering if use could help, I am on frame 4 on this tutorial I am adding the line of code (class Background extends MovieClip), my movie stop working and i get this error (5007: An ActionScript file must have at least one externally visible definition) I have followed all the instruction and still cant get it to work.

+ - !

(0)

avatar for mi4c
mi4c

Apr. 25, 2011

Under rating threshold (show)

+ - !

(-4)

avatar for AlphaOmegaTroll
AlphaOmegaTroll

Apr. 23, 2011

Under rating threshold (show) Less and less people continue, it's like the shootorials are a dungeon RPG. Get past level 1 and understand it you can move on to level 2. If you don't try again. Conquer all 8 levels and you are a potential developer :)

+ - !

(66)

avatar for FeloSlarr
FeloSlarr

Apr. 17, 2011

Under rating threshold (show)

+ - !

(-3)

avatar for Pengisimo
Pengisimo

Apr. 8, 2011

Under rating threshold (show) less and less people make it to the next tutorial lol

+ - !

(3)

  • add a comment