To enhance your user experience, support technical features, and personalize content and ads, this site uses cookies.
Your use of Kongregate’s Services is subject to our revised Cookie Policy, Privacy Policy and Terms of Service.
X Complete Initialization for 10 kreds Complete the Quest and earn an exclusive shiny kongpanion + 10 kreds 15%
Congratulations! You’ve completed your Kongregate account!
Keep exploring Kongregate with more badges and games!
Congratulations! You’ve completed your Kartridge quest!
Spend your hard earned kreds on some of these games!
Hide the progress bar forever? Yes No
The Super Duper Tutorial
Feb. 26, 2010
Rating: 0
How do you make a shooter game using this?
Chronotron
Feb. 24, 2010
stickey keys...
Help needed
Ship: class Ship extends MovieClip { var velocity; var shootLimiter; var enemyTimer; function onLoad() { velocity=10; shootLimiter=0; enemyTimer=0; } function onEnterFrame() { shootLimiter +=1; if( Key.isDown(Key.RIGHT) ){_x +=velocity;} if( Key.isDown(Key.LEFT) ){_x -=velocity;} if( Key.isDown(Key.UP) ){_y -=velocity;} if( Key.isDown(Key.DOWN) ){_y +=velocity;} if( Key.isDown(Key.SPACE)&& shootLimiter > 8 ) { shootlimiter=0; var missile = root.attachMovie( “Missile” , “Missile” + _root.getNextHighestDepth() , _root.getNextHighestDepth() ); missile.x = x + 50; missile.y = _y + 2; } enemyTimer += 1; if(enemyTimer > 60) { enemyTimer = 0; root.attachMovie(“EnemyShip”, "EnemyShip"+root.getNextHighestDepth(), _root.getNextHighestDepth()); } } }
not my game my comment
Um I just acidentaly flagged my game as innapropriate...
wow 2/2 for my game? It's not even done! Thanks guys!
Feb. 23, 2010
I changed the ship code because I thought it would help, it didn't now it's like this: class Ship extends MovieClip { var velocity; var shootLimiter; var enemyTimer; function onLoad() { velocity=10; shootLimiter=0; enemyTimer=0; } function onEnterFrame() { shootLimiter -=1 if( Key.isDown(Key.RIGHT) ){_x +=velocity;} if( Key.isDown(Key.LEFT) ){_x -=velocity;} if( Key.isDown(Key.UP) ){_y -=velocity;} if( Key.isDown(Key.DOWN) ){_y +=velocity;} if( Key.isDown(Key.SPACE)&& shootLimiter > 8 ) { shootlimiter=0 var missile = _root.attachMovie( "Missile" , "Missile" + _root.getNextHighestDepth() , _root.getNextHighestDepth() ); missile._x = _x + 50; missile._y = _y + 2; } enemyTimer += 1; if(enemyTimer > 60) { enemyTimer = 0; _root.attachMovie("EnemyShip", "EnemyShip"+_root.getNextHighestDepth(), _root.getNextHighestDepth()); } }
If you find any errors and know how to fix them please tell me!
Backround: class background extends MovieClip { function onEnterFrame() { _x -= 1; if(_x < -2110) { _x = 0; } }
Rating: -1
Enemy ship: class EnemyShip extends MovieClip { var speed; } function onLoad() { _x = 700; _y = Math.random()*300; speed = Math.random()*5 + 5; } function onEnterFrame() { _x -= speed; if(_x < -100) { this.removeMovieClip(); } }
Missile:class Missile extends MovieClip { var speed; function onLoad() { speed = 20; } function onEnterFrame() { _x += speed; } }
Ship: class Ship extends MovieClip { var velocity; var shootLimiter; var enemyTimer; function onLoad() { velocity=10; shootLimiter=0; enemyTimer=0; } function onEnterFrame() { shootLimiter -=1 if( Key.isDown(Key.RIGHT) ){_x +=velocity;} if( Key.isDown(Key.LEFT) ){_x -=velocity;} if( Key.isDown(Key.UP) ){_y -=velocity;} if( Key.isDown(Key.DOWN) ){_y +=velocity;} if( Key.isDown(Key.SPACE)&& shootLimiter > 8 ) { shootlimiter=0 var missile = _root.attachMovie( "Missile" , "Missile" + _root.getNextHighestDepth() , _root.getNextHighestDepth() ); missile._x = _x + 50; missile._y = _y + 2; } enemyTimer += 1; if(enemyTimer > 60) { enemyTimer = 0; _root.attachMovie("EnemyShip", "EnemyShip"+_root.getNextHighestDepth(), _root.getNextHighestDepth()); } }
I went on further without sucess, the backround still won't scroll I went on to the shootorial with enemy ships, now my ship won't move,won't fire and no enemy ships come, i'm stuck!
What do you guys mean by post to code? should I put the ship class code?
Shootorial #4
I seriously need some help
My ship won't move the backround won't scroll and I can't shoot missiles oh, and I have no enemy ships showing up, could it get worse?
It says there is an error on line 40, I have no line 40.
I get the same thing luke
Wow, my ship won't move now.
Shootorial #2
I'm getting the same 3 messages...
X
Loading