|
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! Congratulations! You’ve completed your Kartridge quest! Spend your hard earned kreds on some of these games! 12sea21's messagesPublic messages for 12sea21
aaa694
May 17, 2012 10:54am class Ship extends MovieClip { var velocity; function onLoad() { velocity = 10; } function onEnterFrame() { _x += velocity; } }
comment
Loading
12sea21
May 17, 2012 4:37pm
Make sure that your class names are the same, ShIP =/= SHIP =/= ship =/= Ship. Make sure that your class names are the same, ShIP =/= SHIP =/= ship =/= Ship.
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?
meowingtime
Jun 5, 2011 2:47pm i can’t get my shootorial to work and i used this code: class Ship extends MovieClip function onLoad() function onEnterFrame()
Loading
12sea21
Jun 5, 2011 6:47pm
Try setting velocity at the start and loading it as is: and then try, Try setting velocity at the start and loading it as is: and then try,
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
Loading
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.
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.
Olaca09
Dec 8, 2010 11:06am I got some probs with the shootorial#1, is this kode okay?: function onLoad() function onEnterFrame()
Loading
meOmega
Feb 17, 2011 8:11am
umm mine still doesnt work umm mine still doesnt work
number5800
Dec 10, 2010 3:50pm class Ship extends MovieClip 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 moreclass Ship extends MovieClip 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 less
Loading
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…
Jazzaboy
Jun 28, 2010 2:49am |