Games Achievements My Kong Sign In

12sea21's messages

Public messages for 12sea21

avatar for aaa694
aaa694

May 17, 2012 10:54am

class Ship extends MovieClip { var velocity; function onLoad() { velocity = 10; } function onEnterFrame() { _x += velocity; } }
I did this . it says the class or interface SHIP could not be loaded

avatar for 12sea21
12sea21 May 17, 2012 4:37pm

Make sure that your class names are the same, ShIP =/= SHIP =/= ship =/= Ship.
I am not doing this enough anymore, I code in java now.
Anyway, maybe your MovieClip in capitalised wrong.
Try using x in…

show more
avatar for 12sea21
12sea21 May 17, 2012 4:51pm

I have another solution, try to get rid of the spaces in the velocity. Did you read the other top comments?

avatar for aaa694
aaa694 May 27, 2012 1:22am

yea yea thank you .. it worked now..:)

avatar for meowingtime
meowingtime

Jun 5, 2011 2:47pm

i can’t get my shootorial to work and i used this code:

class Ship extends MovieClip
{
var velocity;

function onLoad()
{
velocity= 10;
}

function onEnterFrame()
{
_x = _x + velocity;
}
}

avatar for 12sea21
12sea21 Jun 5, 2011 6:47pm

Try setting velocity at the start and loading it as is:
velocity = 10;
function onLoad(){
velocity = 10;
}

and then try,
I can see anything wrong with the spelling.. is the class file names Ship or ship?
Can you explain exactly what works and what doesnt? i.e. you get to the horizontal movement which works but then the vertical doesnt. or something like that… (take into account i havnt been coding for a few months, so i may be rusty.. but ill still try to help :])

show more
avatar for 3ndl3ss
3ndl3ss

Oct 7, 2010 1:33am

Hey can you help me with shootorial #2 I am getting this error (screenshot) and I cant seem to get past it.. http://i53.tinypic.com/rt3n7k.jpg

avatar for 12sea21
12sea21 Oct 7, 2010 5:45am

Something to be aware.. your spelling. You saved as Backround.as (Back ROUND not GROUND) i did that as well ^^

Hope i helped.

avatar for 3ndl3ss
3ndl3ss Oct 8, 2010 3:38pm

thats exactly what I discovered 5 minutes after asking after 20 minutes of searching. Very acute of you. Much appreciated.

avatar for 12sea21
12sea21 Oct 9, 2010 9:44am

No probs :)

avatar for Olaca09
Olaca09

Dec 8, 2010 11:06am

I got some probs with the shootorial#1, is this kode okay?:
class Ship extends MovieClip
{
var velocity;

function onLoad()
{
velocity = 10;
}

function onEnterFrame()
{
if( Key.isDown(Key.RIGHT))
{
_x = _x + velocity;
}
}
}
My ship wont move

avatar for meOmega
meOmega Feb 17, 2011 8:11am

umm mine still doesnt work
i programed a little in action script before but this is my first time actually using class.
i think there something wrong with the linkage because if theres an error in my …

show more
avatar for meOmega
meOmega Feb 17, 2011 8:12am

also i pretty much just copied your code so yea…

avatar for 12sea21
12sea21 Feb 18, 2011 8:22pm

crap its _root. ;)

avatar for meOmega
meOmega

Feb 17, 2011 8:13am

Help plz

avatar for 12sea21
12sea21 Feb 18, 2011 8:21pm

what with

avatar for number5800
number5800

Dec 10, 2010 3:50pm

class Ship extends MovieClip
{
var velocity;
function onLoad()
{ velocity = 10; }
function onEnterFrame()
{
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; }
}

I have the ship saved in the same folder as the script, and the capitalization is good. The ship is a movie clip.. it shows up when I test… that’s all I can think of right now… What did I do wrong?

show more
avatar for number5800
number5800 Dec 15, 2010 2:55pm

I was using as2 when I was commenting with you.

I have one last question: Does java work with kongregate? I know a bit about java for websites… I could adapt that for a little game…

avatar for number5800
number5800 Dec 17, 2010 8:18pm

Yes? No? I’ve been looking for an answer once or twice a day

avatar for number5800
number5800 Dec 20, 2010 7:43am

abandons this message as well

avatar for 12sea21
12sea21

Aug 12, 2010 2:57am

Yeah! Games FTW

avatar for Jazzaboy
Jazzaboy

Jun 28, 2010 2:49am

If it (lightbot) is not loading, right click then press play on the title screen.
And for the badge your score is counted downwards. ;D

avatar for 12sea21
12sea21 Jun 28, 2010 4:08am

lol.. thanks! im like wtf? 30k+=== .. that doesnt seem reasonable… :) thank you

avatar for Boometh
Boometh

Nov 21, 2009 4:39pm

MS is Mystery Spice, it doubles your attack power.

Developers Players Support YouTube TikTok X (Twitter) LinkedIn
Join the conversation Join Discord
Terms of Service Privacy Policy Code of Conduct
© 2025 Kongregate