Games Achievements My Kong Sign In

Comments for Shootorial #2

« Back to Shootorial #2

Foreign

Nov. 23, 2010

Under rating threshold (show) @narfnin make sure you didnt group the backgruond with the ship lol also make sure the background scroll speed is diff than the ship scroll speed XD hope dat helps!

+ - !

(0)

johnyakiba

Aug. 23, 2010

Under rating threshold (show) i can't download the files needed for the shootorial can someone please help me!!!!!

+ - !

(0)

Foreign

Nov. 23, 2010

Under rating threshold (show) AWESOME MY SHIP MOVES!!!

+ - !

(-1)

MrRabid

Aug. 20, 2012

Under rating threshold (show) how do i flash?

+ - !

(0)

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)

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)

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)

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)

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)

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)

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)

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)

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)

frankie1234

Mar. 09, 2011

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

+ - !

(0)

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)

Stratigon13

Jan. 24, 2011

Under rating threshold (show) @euanstevenson I have the exact same problem. I'm using CS5 and whenever the ship moves so does the background. All of my code is right and I can't figure it out.

+ - !

(0)

JaycobColeman

Jan. 11, 2011

Under rating threshold (show) copy.paste.succeed. class Background extends MovieClip { function onEnterFrame() { _x -= 2; if (_x < -2110) { _x = 600; } } }

+ - !

(0)

tochicool

Jan. 03, 2011

Under rating threshold (show) Lol. Go to the next page and it explains it all. Pages 7 & 8 shows you two ways of doing it.. But I have to admit; I spent 30 minutes trying to figure out how to do it :P

+ - !

(0)

loodwig

Nov. 05, 2010

Under rating threshold (show) I'm guessing its an AS2 thing, but I set this.x to 0, and it scrolls just fine. package { import flash.display.MovieClip; import flash.events.Event; public class Background extends MovieClip { private var scrollSpeed; private var scrollWidth; public function Background() { scrollSpeed = 1; scrollWidth = 2110; addEventListener(Event.ENTER_FRAME,EnterFrame); } function EnterFrame(e:Event):void { this.x -= scrollSpeed; if (this.x < -1 * scrollWidth) { this.x = 0; } } } }

+ - !

(0)

narfnin

Oct. 28, 2010

Under rating threshold (show) I have an issue where the background moves WITH the ship. Help please?

+ - !

(0)

hastingsfc12

Oct. 26, 2010

Under rating threshold (show) cant wait till ive got dat D next to my name

+ - !

(0)

SammyZ

Sep. 10, 2010

Under rating threshold (show) nvm I got it. Original Post -------------- I cannot get the bg to scroll (stuck on p.5) 'the class and interface could not be loaded'. Followed everything in the tutorial paying attention to CAPS LOCK and s p a c i n g , and everything is stored in the same folder. When the ship moves, ther background moves with it.

+ - !

(0)

SammyZ

Sep. 09, 2010

Under rating threshold (show) the*

+ - !

(0)

gamerfreak187

Aug. 19, 2010

Under rating threshold (show) I'm using CS5 and I cannot get the background to scroll - has anyone else had this problem before?

+ - !

(0)

aczom

Aug. 16, 2010

Under rating threshold (show) use this: class Background extends MovieClip { function onEnterFrame() { _x -= 1; if(_x < -2110) { _x = 0; } } } it is on the screen there, but it works better than making tiny mistakes and having the error box yell at you. And now you don't need to write or copy from up there.

+ - !

(0)

lampy85

Aug. 02, 2010

Under rating threshold (show) i have this error as well Symbol=Background, layer=Layer 1, frame=1, Line 1 The class or interface 'Background' could not be loaded. i wonder if its becos my background file is jpeg.if so how do i change it to png? thanks

+ - !

(0)

VselwynV

Jul. 13, 2010

Under rating threshold (show) heeey all I have a cool code that definately works: class Background extends MovieClip { function onEnterFrame() { if( Key.isDown(Key.RIGHT) ) { _x = _x - 3; } if( Key.isDown(Key.LEFT) ) { _x = _x + 1; } _x = _x - 2; _x -= 1; if(_x < -2110) { _x = 0; } } } after that just double click the background in the libary then copy the background paste it twice then paste them left from each other so you have 3 times the background without gaps! after that just save it and test it! enjoy! (if this worked please press the +)

+ - !

(0)

The_Red_Square

Jun. 30, 2010

Under rating threshold (show) NVM figured it out.....

+ - !

(0)

thisisatree

May. 30, 2010

Under rating threshold (show) Nevermind! It finally worked. I got the files.

+ - !

(0)

thisisatree

May. 30, 2010

Under rating threshold (show) I can't download the source files, is there any other way to get them? Other than that this is a great tutorial as far as I've seen.

+ - !

(0)

edheri

May. 26, 2010

Under rating threshold (show) Could anyone explain why using "class Background extends MovieClip { function onEnterFrame() { _x -= 7; if(_x < -2110) { _x = 2100; } } } " instead of the code provided in the tutorial actually makes it loop seamlessly? Where does that 2100 come from?

+ - !

(0)

MrBojangles528

Apr. 23, 2010

Under rating threshold (show) I am having trouble with this. My background image isn't scrolling correctly. I c/p it so it would loop seamlessly, but only the second instance resets and continues to scroll. Any ideas why the first image isn't repeating?

+ - !

(0)

inthrees

Apr. 20, 2010

Under rating threshold (show) if(_x < -2110) { _x = 600; } repositions the background just off screen for a smooth looping effect instead of having it pop into being at 0 offset, but hooray these tutorials are great so far, thanks. =D

+ - !

(2)

dcomo

Nov. 05, 2018

Under rating threshold (show) Currently struggling through Animate CC and ActionScript 3.0 :), but I'm getting it - slowly, but surely. I've used code snippets to get the arrow movements and scrolling background to work so far.

+ - !

(0)

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)

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)

assassin153

Apr. 29, 2012

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

+ - !

(0)

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)

mman2112

Jan. 24, 2011

Under rating threshold (show) Does anyone know how to set the y position of the background to zero plus the y position of the ship? I tried using "_y = _y + Ship._y" but it says C:\Users\mman2112\Desktop\Shoot flash\Background.as, Line 10 "The property being referenced does not have the static attribute." PM me with the answer

+ - !

(0)

Pedz

Jan. 17, 2011

Under rating threshold (show) i Don't understand i try to put the background but it says i need it to put it in an another file that has 3.0 but when i tried it made many erros...... -Help anyone..

+ - !

(0)

AndroidAppKill

Oct. 23, 2010

Under rating threshold (show) for some reason i cant get the background to loop, but the code is completely right ;(

+ - !

(0)

dionwdion10

Oct. 23, 2010

Under rating threshold (show) i have this error : can't load class on interface on both background and ship! HEEEEEELP!!!

+ - !

(0)

Maurog

Oct. 16, 2010

Under rating threshold (show) To make looping smooth, instead of using _x = 0 (or x = initial), use _x += 2110

+ - !

(0)

Maurog

Oct. 16, 2010

Under rating threshold (show) By the way people, this tutorial is wrong on making infinite scrolling, both your backgrounds will eventually crawl to the same position. The way to fix it is, either drop _x to +2110 instead of zero when it reaches -2110, or remember the initial _x in onLoad and return to initial when _x < initial-2110.

+ - !

(0)

Zazanxors

Sep. 29, 2010

Under rating threshold (show) I did eveything it said as exact as i could, But the looping is still seamed, I cant fix it.

+ - !

(0)

aelwin

Aug. 12, 2010

Under rating threshold (show) For all with seamless scrolling problems: "SupremeBeing: If you background isn't seemless, change step 7 too: function onEnterFrame() { _x-=1; if (_x < -2109) { _x += 4220; } }" I try to make a custom version with scrolling on the y axis - its preatty confusing, but finally got it working thanks to the above pasted help! WOuld be nice to have a bit mor in depth information why this stuff works like this - for me it was trial and error but I actually would have liked to understand it properly!!! Anyway: GREAT TUTORIALS - Thanks!

+ - !

(0)

aalnius

Aug. 08, 2010

Under rating threshold (show) lampy i had the same problem turns out id accidentally copied the class background extends movieclip bit twice in my code once i deleted it i was fine

+ - !

(0)

twobees

Jul. 17, 2010

Under rating threshold (show) My Ship doesn't work.

+ - !

(0)

totoyamado

Jul. 15, 2010

Under rating threshold (show) nvm

+ - !

(0)

totoyamado

Jul. 14, 2010

Under rating threshold (show) my background and ship are moving together! but when i hide the ship layer the background is there, and when the background layer is hidden the ship is there! so why do they move together!

+ - !

(0)

  • add a comment
Developers Players Support YouTube TikTok X (Twitter) LinkedIn
Join the conversation Join Discord
Terms Privacy Code of Conduct
© 2024 Kongregate