HOME | DD

GuyFlash — How to make adventure games..2

Published: 2005-05-19 10:56:38 +0000 UTC; Views: 6629; Favourites: 60; Downloads: 903
Redirect to original
Description [Part1 link]

Sorry it took so long...
I won't try and excuse myself... as any excuses would involve playing gta3 and watching matrial arts films (House of flying daggers is a must see by the way! espes if you liked hero!)

anyhoo, here's part2, if you have Q's let me know. if you make any games let me know, I'm keen to see!
Related content
Comments: 15

evilwonders [2012-02-12 22:19:17 +0000 UTC]

Very Interesting...
Very cool...
Kudos!

👍: 0 ⏩: 0

ZephyrLightningheart [2011-02-04 19:22:26 +0000 UTC]

amazing tutorial. ^^ if i had flash i would so do this.

👍: 0 ⏩: 0

Aensland [2007-01-05 04:28:32 +0000 UTC]

wow, this is really useful, thank you...
now alli havde to do is get a non demo vewrsion of flash and I'll be set.

👍: 0 ⏩: 0

katiesinclair [2006-12-23 04:18:14 +0000 UTC]

cool.


--

(\__/) (\__/) These are bunnies.Copy and
(+'.'+) (+'.'+) paste them into your signature
(")_(") ('')_('') to help them make the world fuzzy!

👍: 0 ⏩: 1

katiesinclair In reply to katiesinclair [2006-12-23 04:18:58 +0000 UTC]

mmmmmoooooooo!(tooooo meee!!)

👍: 0 ⏩: 0

spikey27 [2006-07-17 02:42:27 +0000 UTC]

i'm such an idiot at actionscript all i can do is draw ( and even those aren't that good )

(btw i know that's the writer's block symbol but it looked good for what i just said)

👍: 0 ⏩: 0

titanius [2005-06-30 10:21:44 +0000 UTC]

hey, as much as i'd like to say this is a good tutorial, i feel that i can't.

It's well designed visually but i think you have over complicated some very simple things like the movement of the character (in the 1st tutorial)

for example:
you say "if (Key.getCode() == 37){"
whereas an easier way do this would be "if(Key.isDown(Key.LEFT)){"


also another little thing you do is to go "_root.mcBALL._x = _root.mcBALL._x - 5;" when, you can in fact simply go "_root.mcBALL._x -= 5;"
and instead of copying your code in two frames of a timer why don't you just attach it to the actual timer and have it in a onClipEvent(enterFrame) handler, this has the same effect.

I'm unsure of why you used variables for the 8 point movement. In my game im just using stuff like

if (Key.isDown(Key.UP) && Key.isDown(Key.RIGHT)) {
UP_RIGHT = true;
} else {
UP_RIGHT = false;
}

I'm in the process of making my own flash game, Bob's Adventure with ~The-Shadow-Master (i do all the scripting) and also a 3d game i was inspired to do after seeing your old website. - i've figured out a way to be able to walk around objects as if they were 3d instead of using your effect of the roof being in a layer above the character and the rest of the house below.

one thing i did gain from your tutorial was the idea of taking the x and y values before and after the movement for use in collision detection, i tend to use movement in two opposite directions to cancel out movement.

Anyway hope i've been of some help and not an annoyance... maybe i should do a tutorial.

👍: 0 ⏩: 1

GuyFlash In reply to titanius [2005-08-09 14:03:37 +0000 UTC]

I'm really glad I helped you out some way, also, the reason I store variables for getting keypresses is so that the user can change the controls if they like at runtime, also all of the -= stuff is really usefull if you are an experianced coder trying to save time and write cleaner code, but if you want to see what is actually going on, I think my way shows it in a way which is easier to understand.

but that is ye olde argument, I find the -= versus = blah-blah all the time in coding forums, it usually turns out as an agree to disagree.

but when I was taught to code, -= wasn't the way I was tought until I had got the hang of how everything works, so that's how I teach... although the whole 'timer' thing I have done is not the way I do things now, I use the onClipEvent(enterFrame) instead, although the timer method saves filesize as the code is stored in a symbol, and not on each movie clip that may use it. anyhoo... I can't think of anything else to say...

👍: 0 ⏩: 0

damned-warrior [2005-05-19 21:06:49 +0000 UTC]

^0^ Great stuff! If I had flash, I bet it would make sense too ^0^

👍: 0 ⏩: 0

dylanjones [2005-05-19 17:51:57 +0000 UTC]

i love it could you make a tutorial on how you made that girl with gun spin around?
me really want to know

👍: 0 ⏩: 1

GuyFlash In reply to dylanjones [2005-05-20 11:14:11 +0000 UTC]

I want to say yes, but I am doing lots of stuff now, but I did it mostly by looking up how flash can use trigonometry to get angles.

👍: 0 ⏩: 0

mooquaaky [2005-05-19 12:19:14 +0000 UTC]

YAY nice work! thanks

👍: 0 ⏩: 0

Fire-start-er [2005-05-19 11:59:23 +0000 UTC]

If I had flash, that would be damn handy......... hang on.. a have a flash CD right over there, all I have to do is pick it up and instal it... screw that, I have toons to watch XD

👍: 0 ⏩: 1

GuyFlash In reply to Fire-start-er [2005-05-19 12:01:32 +0000 UTC]

you must install it, you must!

👍: 0 ⏩: 1

Fire-start-er In reply to GuyFlash [2005-05-19 12:13:00 +0000 UTC]

NEVER!!!!
Well maybe when I have time

👍: 0 ⏩: 0