Games Achievements My Kong Sign In

Comments for Shootorial #2

« Back to Shootorial #2

Pengisimo

Apr. 08, 2011

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

+ - !

(3)

numbus

Mar. 13, 2011

Under rating threshold (show)

+ - !

(-3)

numbus

Mar. 13, 2011

Under rating threshold (show)

+ - !

(-3)

numbus

Mar. 13, 2011

Under rating threshold (show)

+ - !

(-3)

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)

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)

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)

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

+ - !

(22)

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)

PiromancerFreak

Jan. 29, 2011

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

+ - !

(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)

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)

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)

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)

Payasos

Jan. 01, 2011

Under rating threshold (show) NVM i worked out the bug. thanks guys

+ - !

(-2)

Payasos

Jan. 01, 2011

Under rating threshold (show) HALP? My background scrolls just fine, but theres this dreaded big white space after the second go that everyone is talking about. I've tried a few of the suggestions and none of them have worked. My code is class Background extends MovieClip { function onEnterFrame() { _x -= 2.5; if(_x <= -1322.40) { _x = 0; } } } i made my own background, which is why the numbers are different

+ - !

(-2)

euanstevenson

Dec. 30, 2010

Under rating threshold (show) Problem please pm if you got a solution, ship moves, backgrounds scrolls, when ship moves background moves with it.....

+ - !

(-1)

metalmatt

Dec. 19, 2010

Under rating threshold (show) Mine only scrolls once. I even tried OSCARMEYERWIENER's code, but still no luck. Any help guys?

+ - !

(1)

jammed

Dec. 09, 2010

Under rating threshold (show) Symbol=Background, layer=Layer 1, frame=1, Line 1 The class or interface 'Background' could not be loaded. if you're having this kind of error. check the name of your Action Script files. in this tutorial all of it start with a capital letter.

+ - !

(1)

asmit10

Nov. 30, 2010

Under rating threshold (show)

+ - !

(-3)

Foreign

Nov. 23, 2010

Under rating threshold (show)

+ - !

(-3)

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)

Foreign

Nov. 23, 2010

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

+ - !

(-1)

Maliciousphyco

Nov. 15, 2010

Under rating threshold (show) The class or INTERFACE BackGround could not be loaded, any help??

+ - !

(-1)

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)

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)

DrMorriarTi

Sep. 24, 2010

Under rating threshold (show) This looping is not enough smooth. You need to change condition from (x < -2110) to (x < (-2110 + step_of_looping)) or (x <= 2110) because it makes a step before checking the position of background.

+ - !

(-1)

rosslyn568

Sep. 23, 2010

Under rating threshold (show) check out my shooturial inspired game at http://www.kongregate.com/games/rosslyn568/planet-defender suggestions appreciated

+ - !

(-1)

SammyZ

Sep. 10, 2010

Under rating threshold (show) TIP: if there is a star near the title, SAVE!! Remember to save regularly.

+ - !

(1)

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)

SammyZ

Sep. 09, 2010

Under rating threshold (show) 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.

+ - !

(2)

kinglynx

Aug. 25, 2010

Under rating threshold (show)

+ - !

(-3)

johnyakiba

Aug. 23, 2010

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

+ - !

(0)

12sea21

Aug. 23, 2010

Under rating threshold (show) PM Me for help!!!!!!!!!!!!

+ - !

(3)

12sea21

Aug. 23, 2010

Under rating threshold (show) EVERYONE: If it says that the class or interface could not be loaded, save the AS into the folder.

+ - !

(26)

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)

aczom

Aug. 15, 2010

Under rating threshold (show) uhh, my ship doesnt have a transperent back... it is a PNG but its got a white rectangle surrounding it. how do i get rid of that part?

+ - !

(1)

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)

Coolswampy

Aug. 03, 2010

Under rating threshold (show)

+ - !

(-3)

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