Under rating threshold (hideshow)
Perhaps the problem is that people are putting "var velocity" inside one of the functions. Doing so limits it to the scope of that function. Another problem might be that they haven't saved one of their files. Save them both you run it. Until you save over an old file, Flash continues to read from it.
Under rating threshold (hideshow)
BumbleBee I havent read the tutorial yet but quite frankly if you cant use common sense and go off the directions a bit to make something wrong you shouldnt bother trying to learn actionscript.
Under rating threshold (hideshow)
@Bobjrsenior: You'll need to save a separate actionscript file named "Ship.as" which refers to the class "Ship", within the same folder as your .FLA file. Make sure that your ship symbol has the identifier "Ship", to do this right click on your ship symbol and set its properties.
Under rating threshold (hideshow)
When i press control + alt + the 7 button, i don't get the { in my actionscript file. It works here. Any one knows what causes this?
Under rating threshold (hideshow)
great one sucks, the reason we crack it is because no-one is stupid enough to buy the software as we are on here cause we are rookie gamemakers. this is my first attempt, so cracking it is a sensible option. Doosh.
Under rating threshold (hideshow)
Every time i try to convert to symbol it keeps sayin "You must specify a unique Identifier to export or import this symbol" What do i do??? P.s in step 4
Under rating threshold (hideshow)
and now i realize that AS 2.0 will never work with Flash 8. I'm going to go buy a new one.
Because I'm not a piece of crap who downloads a free trial and then cracks it.
Under rating threshold (hideshow)
why use action script 2 on flash cs3 ???
are you sure as2 is fast enough ???
is not better to learn directly action script 3 ????
Under rating threshold (hideshow)
@ CaptureTheFlag; It DOES work, it works perfectly FINE. So if it doesn't work for you, and it took you TWO HOURS, then you sir/ma'am, fail at life..
Under rating threshold (hideshow)
who ever thinks these tutorials suck, you suck. kongregate made this, so if you have a problem, then tell it to kongregate.
Under rating threshold (hideshow)
Again, for you bitching about it not being free, i will re-post my comment from Shootorial 0: JESUS FREAKING CHRIST!!! Kongregate, with all the people bitching about there not being a "Free Flash", i think you should in the description of all your shootorials, add this video from youtube!!! I have posted comments on the fist 3, and i must say peopel are thick in the head to listen!! there are ways to get Flash for free, although most of them are filled with virus. this one, however, is not has virus. (i has downloaded it and it works great) here's the link: http://www.youtube.com/watch?v=9hUtvxjD5IU
Under rating threshold (hideshow)
This does not work it all. Your tutorials suck, do not ever try to make a new one again. Thank you for taking away two hours of my life.
Under rating threshold (hideshow)
ph, if i only had a bigger attention span... I wish i could get into this, but i have a serious motivation issue.. it's made me miss out on alot..
Under rating threshold (hideshow)
to change the graphics of the ship when you press a key add a second keyframe in your ship movieclip and draw the altered graphic. In the if( Key.isDown(Key.Right)) { ... }
add goToandPlay(2); (or maybe _this.goToandPlay(2); (not sure)
on your second frame of the ship movieclip add stop(); in the frame actions.
in the onEnterFrame function of the ship class add
if(Key.isUp) { goToandPlay(1); } or _this.goToanPlay(1); (like the first time)
and on the first frame of your ship movieclip add stop(); in the frame actions
Under rating threshold (hideshow)
"The keyword 'extends' is reserved for ActionScript 2.0 and cannot be used here"
Extended Fail.
Nice pic ImBored BTW.
Under rating threshold (hideshow)
*For anyone having trouble*
If you are getting the "class or interface 'Ship' could not be loaded" error, try saving the Flash document as well as the '.as' file.
Make sure that they are in the same folder. Hopefully that will help.
Under rating threshold (hideshow)
It works with Vista, so im assuming its not mac only
Anyway, what code should i use to change the graphics of the ship when a key is pressed?
I know it should be like this
if( Key.isDown(Key.RIGHT) )
{
Blah blah blah
Under rating threshold (hideshow)
Mine works! Great idea! I had the problem of the class couldn't load too... I just deleted it all and it worked the second time around. Might want to try that.
Under rating threshold (hideshow)
When ever I get to step 9 it just says "The class or interface 'ship 2' could not be loaded." Anyone know how to solve it?
Under rating threshold (hideshow)
hey im having a problem, when it says to test the swf, it says the ship should be moving right. It isn't, im not getting any errors when testing either.
Under rating threshold (hideshow)
class Ship extends MovieClip
{
var velocity;
function onLoad()
{
velocity = 10;
}
function onEnterFrame()
{
_x = _x + velocity;
}
function onEnterFrame()
{
if( Key.isDown(Key.RIGHT) )
{
_x = _x + velocity;
}
}
}
The same member name may not be repeated more than once.
Whats wrong?