PDA

View Full Version : Making games in Flash


skye
05-27-2003, 08:12 PM
I've had inumerable E-mails about creating games in Flash. These E-mails and posts will now be answered in this 'Flash Game Dev' Forum.

If you want to write a tutorial, or know a good resource, please post here.

Jshaw71
06-01-2003, 02:02 PM
I've had inumerable E-mails about creating games in Flash. These E-mails and posts will now be answered in this 'Flash Game Dev' Forum.

If you want to write a tutorial, or know a good resource, please post here.

:: keeps an eye on this thread :: I wana learn how to make flash games :-D

skye
06-01-2003, 03:35 PM
If anyone has any suggested tutorials, or questions, please let me know.

The First
06-16-2003, 11:49 AM
How do you make "Castle" game savable. I want to learn how :)

Max Stringer
06-16-2003, 10:51 PM
i really wanna know how to make games ans interactve features

BlueVegeta
06-17-2003, 02:47 AM
Hi all, I see that you guys/Gurls would like some tutorials? yes well here are some good sites. But some of the sites are for MX only or so they say you will have to test em out cool.

http://www.flashkit.com/tutorials/Games/index.php
Huge database full of flash.
http://www.tutorials911.com/tutorials/display.php?cid=15
Hmm not to sure how good they are.
http://www.psmeg.co.uk/pages/flash_tut_index.htm
Now these guys have some thing on the neck.
http://www.artifactinteractive.com.au/dev/resources.html
This is where I learnt how to make Flash movies but please don't hold it againts them.
http://www.actionscript.org/tutorials.shtml
They haven't got any game tutorials but they have lots of other things really good site.
http://www.shockanime.com/tutorials/
Have a look at at the How to create a Fighting Game part 1

If there is a url that should be here contacted me please and i'll add it. If you need any more help just hit F1 realy good database in the help file use it.

Well im off c yah.

Max Stringer
06-17-2003, 03:13 AM
YAY!

GLITCH
07-21-2003, 08:03 AM
wow thats a lot of links. i have been doing flash for about 4 years or so and i don't konw how to make games...i guess it is just what path you take, i am still learning after 4 years and i constantly improve as i make new stuff. i guess you can go one way or the other, but some people cna do great graphics and actionscript! :? but i like flash kit it helped me make webpages in flash and basic code, i guess you have to spend lots of time just mucking around to just learn how to use the program. just practice! and keep at it! i stopped quite a few times but each time i make a movie (tho i never seem to stay on one idea! :lol: ) i get better! (i am still not very good! lol but im trying!) if you have any questions feel free to email me (i_like_dat@hotmail.com) and ask. i have lots of tutorials, ill try help but i wouldn't clasify myself as good :$.
www.newgrounds.com has some tutorials also...just basics like how to make a pre-loader which if you plan on habving movies on the net is crucial!!
-GLITCH

Jshaw71
07-27-2003, 01:37 PM
shockanimes down? damn i was hopeing to take a look on the tutorial for a fighting game, i wana make a final fight type game, can you direct me to another site?

DiablodeMorte
07-29-2003, 08:57 AM
i need help actionscripting buttons can anybody help

dogs dA BEST
07-30-2003, 09:19 PM
savable games i will tell go to flash kit.com <tuterals>games>go threw the pages and find saving vwella

Mattachoo
07-30-2003, 09:31 PM
i need help actionscripting buttons can anybody help

What do you mean by this. Ask a specific question, and I might be able to answer it

InsaneFootman
07-31-2003, 06:41 PM
yeah, be a little bit more specific and i can help, although i just started flash stuffs today, i know a lot

TBoneJWJ
07-31-2003, 10:01 PM
So do you eventually get the hang of making flash programs or do you pretty much have to reference a book or website for something all the time?

dogs dA BEST
08-01-2003, 08:11 AM
hea glitch i thought you were going to make a game and you dont even now how to make a simple game

jason
08-02-2003, 10:13 AM
hm.. i m gonna try to make sumthing like dat in da front page but instead its gonna be a circle

TBoneJWJ
08-02-2003, 11:44 AM
ahhhh I wish I had flash!!!

dogs dA BEST
08-02-2003, 05:55 PM
u should get it is ausome only 100 bucks worth it

jason
08-02-2003, 07:16 PM
ya i got 5 days left on my trial

dogs dA BEST
08-02-2003, 07:29 PM
i thought you said it was stuck on 7 and anyway are you gonig to buy it

TBoneJWJ
08-02-2003, 10:08 PM
What is the trial version like? I look at the requirements and it appeared to take up a lot of space. Is it worth the download for a semi-crappy computer?

dogs dA BEST
08-03-2003, 08:32 AM
well yea its just a download u can delete it after 30 days

denacioust
08-03-2003, 04:54 PM
Can someone tell me how to throw something like in Castle!

TBoneJWJ
08-03-2003, 11:21 PM
I guess I'll give the download a whirl.

dogs dA BEST
08-04-2003, 08:31 AM
yea u should i bought i use it almost everyday

TBoneJWJ
08-06-2003, 01:26 AM
yeah but I'm not sure I'll have a lot of time once school starts... plus it probably takes up a lot of hard drive

jason
08-06-2003, 12:25 PM
dog da best it was stuck on 7 but then my mom usd virus scan and she found a virus she got rid of it now it goes down days now :( not fair

SurgeCMK
08-07-2003, 02:55 AM
Well, games are all about actionscript and learning the language. I use a very good site that can help even more advanced users to the people who know nothing. www.actionscript.org that site is very good just go to the tutorials and take their codes and play with them. The best way to learn is with experience.

jason
08-07-2003, 02:46 PM
hm.. i think i will go to that website lol i gotta learn something

Christurner12
08-11-2003, 05:13 AM
ok how do you like do preload button on flash and do specil efects i know its codes but how do the codes go ?

c00lryguy
08-26-2003, 04:09 PM
yea i wanna know how to do that too

denacioust
08-31-2003, 03:29 PM
How do you make "Castle" game savable. I want to learn how :)

In case noone told u yet

Object.prototype.setCookie = function(c, n, v) {
var so = SharedObject.getLocal(c);
so.data[n] = v;
so.flush();
};
Object.prototype.getCookie = function(c, n) {
var so = SharedObject.getLocal(c);
return so.data[n];
};


Just let this code run once, and it will do the job (please don't ask me how it works, I don't know, it just works)

Now we can use two functions:
getCookie("name","itemname")
setCookie("name","itemname", var_to_save)

of course name stands for how to call the file, itemname is the subject in the file (you can have as many as you want) and when saving a variabele, it needs to know what to save.

As you can see, you save 1 variabele at a time. In a game, many variabeles influence the progress and need to be saved. I'm working on a game too and didn't want to save each variabele at a time.

This is where arrays come in handy.
Just think of an array as a database, it contains as many variabeles as you want.

You can declare an array in 3 ways, I use only one, because it give's the array's subjects ogical names.

_root.database = new Array(name, age, sex);

Now you have a database Array wich contains 3 variabeles.
You can acces these variabeles using _root.database.name.

After asigning vars to it, you can export it using

this.setCookie("database","item1",_root.database)

and reload it using:

_root.database = this.getCookie("database","item1")

If there's something you don't understand, check the .fla, all the code is on the mc, except for the function declaring.
The database is located in the mc too

dogs dA BEST
09-26-2003, 04:31 PM
did you memerize this, if so... damn you have a big memory

Skooma
11-02-2003, 10:48 PM
ok i ant to make a game BUT I KNOW NOTHING ABOUT ACTION SCRIP OR MAKEING GAMES IN GENERAL...

The Brown Cow
11-03-2003, 03:36 PM
Object.prototype.setCookie = function(c, n, v) {
var so = SharedObject.getLocal(c);
so.data[n] = v;
so.flush();
};
Object.prototype.getCookie = function(c, n) {
var so = SharedObject.getLocal(c);
return so.data[n];
};


Just let this code run once, and it will do the job (please don't ask me how it works, I don't know, it just works)

Hmmm... Here's what I understand of it, for those who like to understand rather than just plug and play.

This code would probably go in the first frame of your movie. It defines 2 functions: setCookie and getCookie. A function is a bit of code which can be called again and again.

These functions are prototypes set to apply only to Objects.
Object.prototype.setCookie = function(c, n, v) {

setCookie calls for the unput of 3 values: c, n, and v.
Object.prototype.setCookie = function(c, n, v) {
c = the file's name
n = the item's name
v = the value for n

The code then declares a variable called so:
var so = SharedObject.getLocal(c);
and uses some sort of built-in function to assign it a value.

An array named data is declared and initialized in so, and the slot n is given the value of v.
so.data[n] = v;

so.flush();
This does something :). It uses the built in function "flush" on the variable so. I imagine this creates the cookie.


Object.prototype.getCookie = function(c, n) {
var so = SharedObject.getLocal(c);
This creates another function named getcookie, which asks for c and n and creates the a variable named so (the old one having been destroyed at the end of the function.

The cookie named so is called for. The value of data in the slot n is taken and returned by the function.
return so.data[n];


Hope that helps someone out there... :D

LnDCobra
11-03-2003, 04:13 PM
this is a well written code, the only bit i dont understand is the function(n,c,v) {}, i dont understand what you supposed to put in the brackets, i know u put in some variables but what ones and for what, or is it the ones ur gonna use??? does any1 know if its possible to write in object oriented script in flash mx 2004???

The Brown Cow
11-03-2003, 04:48 PM
function(n, c, v) {}

n, c, and v are given when you call the command. So if you wanted to save the value of 5 under the name "level" in the file "castle", so would say:

setCookie("castle", "level", 5);

The variable are only used within the function, and refer to the values given when the function is called.

.-
11-24-2003, 08:23 PM
Is it hard to make a game? :?:

The Brown Cow
11-24-2003, 10:32 PM
That's a very open question.

To make a nice, simple, multiple choice, point-and-click: no, it's not too hard.

To make something like Cinderfall: It's very hard indeed.

!FiShA!
11-28-2003, 09:06 PM
hey thx for the help now i can make better games than my point and click

Freddy
11-29-2003, 01:23 AM
I tried making a point and click game before. I was a real newb to flash then(much more than now). I gave up because it was much harder than I thought. Not as hard as Cinderfall, but relitively hard anyway. I probably still cant do it.

bug_eater54
01-08-2004, 05:58 PM
ya um, where do i get the free trial flash thingy peeplz? thanx

bug_eater54
01-08-2004, 06:18 PM
need

The Brown Cow
01-08-2004, 07:05 PM
Don't double post...

www.macromedia.com

SkullDevil
05-03-2004, 03:15 PM
i don't recommend this (even though i did it myself)

download the trial and then put in this serial

Serial No. WPD700 58202 88194 29915

it works i unlocked it
it was cool
c ya!

Posh Jibbons
05-03-2004, 04:37 PM
That's illegal.

Don't do that ever again.

LiL_tErK
05-26-2004, 07:22 PM
Okay basically i bought mx flash 2004 alrite dont kno how to do anything in it... :? it wasent the smartest but i like fooling around trying to learn but i cant even make a movie... i need some intense help....i just wanna make my stick figure move...soo that i can send it to friends and then eventually make flash games but i need help please someone help me!

Man-Eater
08-11-2004, 04:03 PM
hey, on your reply, what does it mean by join my game?

laforge
08-25-2004, 10:41 PM
Hey is there like a free trial of Flash 5 or a flash program i could try simple stuff in? Also what is a good cheep program that i could use?

denacioust
08-26-2004, 04:23 PM
Yes, goto www.macromedia.com

illrainman
08-26-2004, 05:52 PM
Man denacioust you could make that sig of yours into a good looking rpg. Looks like a cleaned up version of SRPG.

denacioust
08-27-2004, 03:26 PM
Thanks, Ill BTw if you click on the man he changes colour, just something I was messing with

illrainman
08-27-2004, 04:37 PM
Is that a separate movieClip on top of the character? And if thats random colors, how did you change the colors with actionscript?

denacioust
08-27-2004, 04:41 PM
On an Mc
onClipEvent (load) {
function changecolour () {
myColor = Math.round( Math.random()*0xFFFFFF );
myColoredObject = new Color (this);
myColoredObject.setRGB(myColor);
}
changecolour ();
}
on (release) {
changecolour ();
}

DarkGamer
10-31-2004, 03:32 AM
i want to learn how to add a game to a forum

clcik on my sig with the link to my forums.
Where it says Affilaite box something called
arcade should come up.I would like to know
how to add a game to the arcade for example
this game:
http://www.xgenstudios.com/play/fishy

DarthVadarLover81228
11-25-2004, 06:07 AM
:shock: I have flash but I dont understand how to make games. I made movies and animation but not games could some one help me? :shock:

theneedforsex
12-07-2004, 06:35 AM
Isnt it a bit stupid to post saying:
"i dont know how to make games, please somebody help me?"?... It takes a lot more than just a little help, to learn to make games!!!
So please stop doing that!!!

c00lryguy
12-07-2004, 08:04 AM
Isn't it a but stupid to bring up a topic and say something useless?

So please stop doing that!!!

csmsb
12-21-2004, 02:14 AM
can i get flash for free.... not a trial???

metroidgunner
12-24-2004, 12:48 PM
Yes you can get flash MX pro for free, but I think it's against the law. Think a $500 program for free. http://www.andr.net/ here is a cra* load of serials and cracks for programs, it's not illegal becuse it's a web site, but doing it is most likeley illegal. Dont blame me for this :!: .

sactownboy10
01-16-2005, 01:20 AM
how do u make a game in flash

sactownboy10
01-21-2005, 01:26 PM
wazzup yall

CodeMan2004
02-06-2005, 02:49 PM
The thing i need help with creating games is what and where do u get the programs to create it :P



op never mind i found where it was :P

CodeMan2004
02-08-2005, 04:11 PM
Ummmmm...... i tryed to download the mx but it has no install and im so lost so some 1 help me

The Brown Cow
02-08-2005, 07:17 PM
http://www.macromedia.com/cfusion/tdrc/index.cfm?product=flash

Sign in, download trial.

CodeMan2004
02-09-2005, 02:42 PM
Thank you brown cow :D

SgtLothargent
02-13-2005, 09:16 AM
I can't load any of the Tutorials. BOO!

ledzeppelin90
04-05-2005, 01:59 PM
Ok i went to this link
http://www.flashkit.com/tutorials/Games/index.php
and it didn't work it said all the tutorials are moved. And no of the others ones work eitehr help..

And how do i start i am now just starting flash

eatmorchikin6464
04-05-2005, 02:04 PM
http://www.flashkit.com/tutorials/

That will get you to all the tutorials.

Also check out

www.kirupa.com

ledzeppelin90
04-05-2005, 02:25 PM
i'm on flashkit starting out tutorials i'm on the first one :D

eatmorchikin6464
04-05-2005, 02:25 PM
Atleast some new flash user is committed to actually learning.

ledzeppelin90
04-05-2005, 02:29 PM
i just can't wait to actually do something kool with it.

eatmorchikin6464
04-05-2005, 02:31 PM
Well, it's good that your excited, just dont get to excited that you get in over your head. :D

ledzeppelin90
04-05-2005, 02:37 PM
hmm wat u mean?

eatmorchikin6464
04-05-2005, 02:40 PM
Dont get so excited that you do things above your difficulty level. Then you will see that you cant do it and give up.

ledzeppelin90
04-05-2005, 02:44 PM
ok

killall 001
04-14-2005, 11:14 AM
i wanna make a game like stick rpg any1 got any help? :(

Swas
04-14-2005, 11:31 AM
learn flash, please can people not keep posting in here, it seems a bit pointless when you could have a topic which will probably get noticed more. theres no way to just help someone make srpg, you can teach some1 flash and how to apply it, go look around at some tutorials and come back. im guessing youve never made a game before you think that an rpg is going to be easy.