Comments for Shootorial #2

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. 08, 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 guney98
guney98

Mar. 03, 2012

Under rating threshold (show) @thunbear the same thing happened to me, i just saved the background script and it worked

+ - !

(0)

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.

+ - !

(1)

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. 02, 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. 05, 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. 01, 2011

Under rating threshold (show) FUN LOLOLOLOLOL :D

+ - !

(3)

avatar for legomyhobo
legomyhobo

Aug. 09, 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. 02, 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. 04, 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.

+ - !

(16)

avatar for Cozythrias
Cozythrias

Jun. 04, 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. 08, 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 Sstevie1
Sstevie1

May. 03, 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 :)

+ - !

(53)

avatar for FeloSlarr
FeloSlarr

Apr. 17, 2011

Under rating threshold (show)

+ - !

(-3)

avatar for Pengisimo
Pengisimo

Apr. 08, 2011

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

+ - !

(3)

avatar for Eddiechen
Eddiechen

Mar. 13, 2011

Under rating threshold (show) Is it have to be that my ship can't move or it is a mistake???

+ - !

(-2)

avatar for numbus
numbus

Mar. 13, 2011

Under rating threshold (show)

+ - !

(-3)

avatar for numbus
numbus

Mar. 13, 2011

Under rating threshold (show)

+ - !

(-3)

avatar for numbus
numbus

Mar. 13, 2011

Under rating threshold (show)

+ - !

(-3)

avatar for JWRabbit
JWRabbit

Mar. 10, 2011

Under rating threshold (show) Ok, fixed the ALL (ship and background) moving stuff. My error was a question of hierachy. Layer1 -> ship /background (both inside layer1). The right way is 2 DIFFERENT Layers from the root and NOT both Inside the Root. In case of doubt, click on the Scene 1 title if u see only 1 layer ... thats the problem, u need to see 2 layers (ship and background) as unique items.

+ - !

(2)

avatar for frankie1234
frankie1234

Mar. 09, 2011

Under rating threshold (show) is this background scroll actionscript?

+ - !

(0)

avatar for Hellgrinder
Hellgrinder

Feb. 26, 2011

Under rating threshold (show) need badges :D lol :) i'm starting this tutorials :) thx a lot very useful ... not detailled but it is a good start and a push to search more on the net thx a lot :D

+ - !

(0)

avatar for SinSippo
SinSippo

Feb. 23, 2011

Under rating threshold (show) @tyugn did you made sure the framerate is 30 FPS? Other wise come check the Game Development Room (GDR) once in a while, people will help you there.

+ - !

(2)

avatar for EricPower
EricPower

Feb. 19, 2011

Under rating threshold (show) ploopy if your ship lags try increasing/decreasing fps. too high can cause lag and too slow can make your ship jump from place to place and appear laggy while not being laggy

+ - !

(17)

avatar for tyugn
tyugn

Jan. 29, 2011

Under rating threshold (show) My ship isn't moving when I try to test. Here is my code. class Ship extends MovieClip { var velocity; function onLoad() { velocity = 10; } function onEnterFrame() { if (Key.isDown(Key.RIGHT)) { _x = _x + velocity; } if (Key.isDown(Key.LEFT)) { _x = _x - velocity; } if (Key.isDown(Key.UP)) { _y = _y - velocity; } if (Key.isDown(Key.DOWN)) { _y = _y + velocity; } } }

+ - !

(1)

avatar for PiromancerFreak
PiromancerFreak

Jan. 29, 2011

Under rating threshold (show) i wonder if this code will work for GM8 :P i hope so

+ - !

(0)

  • add a comment