HOME | DD

kittyninjafish — SuperSimpleFlashGame Tutorial

Published: 2011-10-27 21:07:57 +0000 UTC; Views: 1855; Favourites: 76; Downloads: 23
Redirect to original
Description NOTE: THIS IS FOR ACTIONSCRIPT 3.0!
You can change this in File->Publish Settings


Feel free to ask me questions, correct grammar or pick a fight! : )
Related content
Comments: 49

AndreaAlek [2013-04-18 13:32:19 +0000 UTC]

Sorry for asking again XD but i have a problem. I can't Type: { and that's really annoing do you maybe know what the problem is? i can't find an answer anywhere!

👍: 0 ⏩: 1

kittyninjafish In reply to AndreaAlek [2013-04-18 14:01:25 +0000 UTC]

That's weird :\
'alt gr' + '7' does nothing? It's nowhere else on your keyboard?

👍: 0 ⏩: 1

AndreaAlek In reply to kittyninjafish [2013-04-18 14:12:14 +0000 UTC]

No it is nowhere else on my keyboard

👍: 0 ⏩: 1

kittyninjafish In reply to AndreaAlek [2013-04-18 14:26:43 +0000 UTC]

Are you using windows? Try this: [link]
alt 125 and alt 123 should give you the curly brackets, fn before alt if you haven't got a num pad. That's a lot of buttonpressing though..

👍: 0 ⏩: 1

AndreaAlek In reply to kittyninjafish [2013-04-18 17:19:39 +0000 UTC]

I made it work now something was wrong with my keyboard.. Thanks for the help!

👍: 0 ⏩: 1

kittyninjafish In reply to AndreaAlek [2013-04-18 19:26:15 +0000 UTC]

No problem, good luck with the programming! : )

👍: 0 ⏩: 1

AndreaAlek In reply to kittyninjafish [2013-04-19 06:47:28 +0000 UTC]

Thank you so much!

👍: 0 ⏩: 0

Fefferfox [2012-08-06 01:14:26 +0000 UTC]

((Hi!!! I've come to bother ya again!!!! x3 ))
do you know a place where i could download flash for free???
thx!
~feffer

👍: 0 ⏩: 1

kittyninjafish In reply to Fefferfox [2012-08-06 06:52:30 +0000 UTC]

You can download the free-version from adobe.com, it lasts for 30 days I think

👍: 0 ⏩: 1

Fefferfox In reply to kittyninjafish [2012-08-06 17:58:25 +0000 UTC]

thank you (again!! XD) :3

👍: 0 ⏩: 1

kittyninjafish In reply to Fefferfox [2012-08-06 18:49:13 +0000 UTC]

no problem ; )

👍: 0 ⏩: 0

Penlink [2012-07-02 07:31:19 +0000 UTC]

This was a helpful tutorial that you made man. I still can't believe that I made a little moving guy in about an hour with flash. ^_^

👍: 0 ⏩: 1

kittyninjafish In reply to Penlink [2012-07-03 15:56:39 +0000 UTC]

Thanks, and congrats! : D

👍: 0 ⏩: 0

pinkypies [2012-05-19 06:24:26 +0000 UTC]

Do you write the same for Flash Professional 8? BTW great tutorial!

👍: 0 ⏩: 1

kittyninjafish In reply to pinkypies [2012-05-19 12:04:29 +0000 UTC]

Thanks!
But I thiiink Flash Professional 8 is so old it uses Actionscript 2, not 3 (That's the name of the script languages).
So you'll have to either upgrade to Flash CS3 or newer, OR use a tutorial for Actionscript 2.

👍: 0 ⏩: 0

XdarkripperX [2012-01-28 08:02:25 +0000 UTC]

great thnx for doing this dude!!

👍: 0 ⏩: 1

kittyninjafish In reply to XdarkripperX [2012-01-28 09:11:04 +0000 UTC]

No problem : D

👍: 0 ⏩: 0

Ramib [2012-01-16 03:35:33 +0000 UTC]

thanks a bunch, everything is so clear!

I had a problem with the braces and even if I fixed it flash kept telling me that I was missing one. I rage quitted thinking I would never touch flash again and then I realised I had to save it before testing it again >_<

mine walks up and down too lol now i'm going to see if by pressing a secret key I can make something weird appear from the library. (??)

also I swear I didn't know bob was a nickname for robert.

👍: 0 ⏩: 1

kittyninjafish In reply to Ramib [2012-01-18 10:45:35 +0000 UTC]

Nice, I'm glad to be of help : D

👍: 0 ⏩: 0

Wolflessnight [2011-11-06 15:35:50 +0000 UTC]

Thank you for the tutorial!
I came up with a problem, though, which is that I simply don't know how to run the script or "play" my game. I followed all of your steps until the end and even checked if there are any syntax-errors I could have accidentally made. But there are none.
Could you tell me a different way to open the game expect for pressing CTRL and ENTER? When doing this nothing happens, even though I have both the .fla and the .as file open. I know it's a kind of embarrassing question but after searching the internet for a solution, I think asking you directly for help would be easier.
Thanks!

👍: 0 ⏩: 2

kittyninjafish In reply to Wolflessnight [2011-11-06 21:53:54 +0000 UTC]

Weird! Ctrl+Enter is the shortcut for going to Control->Test->Test Movie, so you can use that instead.
Ctrl+Enter is a lot faster though! Maybe you can go to Edit->Keyboard Shortcuts and assign a new shortcut for it.. Though I couldn't find it when I looked there :S

👍: 0 ⏩: 1

Wolflessnight In reply to kittyninjafish [2011-11-06 22:22:59 +0000 UTC]

Thank you! Now it works.
But I can only see my character sticking at the same spot and running without me clicking anything.
And I can't control the character either.
I guess I'm just too dumb for this. :_: (Sorry for bothering you.)

👍: 0 ⏩: 1

kittyninjafish In reply to Wolflessnight [2011-11-06 22:37:44 +0000 UTC]

Don't give up! D:
Did you get any errors? If not, Flash probably doesn't run through your .as-file.

To check if Flash even tries to read the code, try writing
trace("writesomething");
in the RobertCode(or what you called it) function! When the game runs, your message should appear in a window.

If it doesn't, Flash doesn't read your .as-file and it should be easy to fix:
Make sure both files are saved in the same folder.
Also make sure the name of the class and main function in the .as-file is the same as the name of the class in the Properties-panel in the .fla-file.
All names are case-sensitive, so beware of small and big letters.

You can do it! : D

👍: 0 ⏩: 1

Wolflessnight In reply to kittyninjafish [2011-11-13 10:18:32 +0000 UTC]

So finally I figured out what has caused the problem:
The class name in the .fla should be the same as the .as script file name - I didn't quite get that. Also I had to name the script file before putting in its name in the .fla document class field (or else it won't work o-o).

Now that it's working I came across another "problem" (sorry for bothering you again ;_.
When I change the direction of my character (I press left left left and then press right), it doesn't turn around on the same spot I pressed "right" but it suddenly jumps further. And this looks weird.
How do I tell it to turn around on (nearly) the same spot?

👍: 0 ⏩: 1

kittyninjafish In reply to Wolflessnight [2011-11-13 22:51:54 +0000 UTC]

Ah, ok! I'm glad you worked it out : D

In your .fla, enter your characters symbol. You'll see a small black cross somewhere. That's 0x,0y. (Should've mentioned this in the tutorial) When you turn directions, everything in the symbol will flip horizontally over this cross.
Simply move your character left or right to place it over the cross. : )

👍: 0 ⏩: 1

Wolflessnight In reply to kittyninjafish [2011-11-14 15:52:15 +0000 UTC]

Thank you! Now I'm happy. :3 <3

👍: 0 ⏩: 1

kittyninjafish In reply to Wolflessnight [2011-11-14 15:55:30 +0000 UTC]

^^

👍: 0 ⏩: 0

Wolflessnight In reply to Wolflessnight [2011-11-06 15:40:17 +0000 UTC]

*and not finding a solution in the internet (without that it sounds confusing)

👍: 0 ⏩: 0

ferretsketch [2011-10-28 06:43:59 +0000 UTC]

👍: 0 ⏩: 1

kittyninjafish In reply to ferretsketch [2011-10-28 11:00:33 +0000 UTC]

You can do it!

👍: 0 ⏩: 0

Art-Muse [2011-10-28 01:26:21 +0000 UTC]

"...or pick a fight!" CHALLENGE ACCEPTED MISTER

👍: 0 ⏩: 1

kittyninjafish In reply to Art-Muse [2011-10-28 11:15:16 +0000 UTC]

My arch nemesis.. I thought you might show up! >: o

👍: 0 ⏩: 1

Art-Muse In reply to kittyninjafish [2011-10-28 12:27:49 +0000 UTC]

*couch*
This day has been foretold many eons ago, by shaven oriental monks. Prepare yourself!

*raises weapon*

👍: 0 ⏩: 1

kittyninjafish In reply to Art-Muse [2011-10-28 12:36:32 +0000 UTC]

xD *couch*
*watches tv*

👍: 0 ⏩: 1

Art-Muse In reply to kittyninjafish [2011-10-28 19:26:18 +0000 UTC]

Raawr!
*takes a nose dive into some concrete*
nnyaaaa!
*throws melee weapon, slashes with rifle*

D:<

👍: 0 ⏩: 1

kittyninjafish In reply to Art-Muse [2011-10-28 19:48:49 +0000 UTC]

8D *eats popcorn*

👍: 0 ⏩: 1

Art-Muse In reply to kittyninjafish [2011-10-29 11:18:25 +0000 UTC]

D: I just want to be loved!
*hugs nearby hat rack*
> filthy swines! Give me back my freedom!
*Charges at a toaster iron*

D:

👍: 0 ⏩: 1

kittyninjafish In reply to Art-Muse [2011-10-29 12:16:00 +0000 UTC]

XD Priceless!
*applauds*

👍: 0 ⏩: 1

Art-Muse In reply to kittyninjafish [2011-10-29 14:31:05 +0000 UTC]

x''3

👍: 0 ⏩: 0

Miradox [2011-10-28 00:54:03 +0000 UTC]

thanks for the hardcore tutorial!

👍: 0 ⏩: 1

kittyninjafish In reply to Miradox [2011-10-28 11:18:21 +0000 UTC]

You're welcome : )

👍: 0 ⏩: 0

burmalloo [2011-10-27 22:33:10 +0000 UTC]

hmmm, i must get flash!! then this will be helpful xD

👍: 0 ⏩: 1

kittyninjafish In reply to burmalloo [2011-10-28 00:08:31 +0000 UTC]

Haha^^ Well, You can download the trial version for free, but I don't know how long it lasts.

👍: 0 ⏩: 0

kthxplz [2011-10-27 21:14:28 +0000 UTC]

Awesome resource that I'm sure lots of people will learn something from!

Amusingly, nose-walker guy stays wherever you walk him to, if you get to the final step, make him walk outside the box, then go back to previous steps. Having him stand off to the side looks like he's sadly observing his own creation. xD

👍: 0 ⏩: 1

kittyninjafish In reply to kthxplz [2011-10-27 21:22:02 +0000 UTC]

Thanks^^
And wow, I didn't think anyone would have fun walking him around! Nice xD

👍: 0 ⏩: 1

kthxplz In reply to kittyninjafish [2011-10-28 21:47:45 +0000 UTC]

I featured this in my journal just now, just to help spread its usefulness. x] [link]

👍: 0 ⏩: 1

kittyninjafish In reply to kthxplz [2011-10-28 22:08:53 +0000 UTC]

Thanks! ^^

👍: 0 ⏩: 0

rena212 [2011-10-27 21:11:22 +0000 UTC]

Wow, this is really helpful! Thank you for making this!

👍: 0 ⏩: 1

kittyninjafish In reply to rena212 [2011-10-27 21:19:06 +0000 UTC]

Thanks, I'm glad to be of help : )

👍: 0 ⏩: 0