ForumsProgramming ForumBeginning Programmer

10 3797
Tokes
offline
Tokes
17 posts
Nomad

Hey, I was just wondering. What's the language used to write most flash games these days?? I'm a college student and I'm pretty familiar with Java and a little C. Is it hard to just pick up game writing?

  • 10 Replies
Captain_J_Sheridan
offline
Captain_J_Sheridan
313 posts
Nomad

Flash uses actionscript

It's pretty easy once you get the hang of it, but there are a lot of commands

dank
offline
dank
986 posts
Peasant

Actionscript is just about identical to Java. You won't have any problem working in it as long as you have good experience with OOP.

MikeRLee
offline
MikeRLee
10 posts
Nomad

It depends wether you want to make games in 2D or 3D. If you start off simply and start off with battleships or something similar and build from there you'll find its easy.
Don't attempt 3D or multi-player until you can make a decent 2D single-player RPG is my rule of thumb as well-made RPGs may not definitively be the hardest to make but they are certainly the largest and tests your coding style.
What course are you taking at college?

Qwerty001
offline
Qwerty001
422 posts
Nomad

What C? C++ or C#... or C+ lol

Btw what is OOP?

IQAndreas
offline
IQAndreas
299 posts
Peasant

OOP = Object Oriented Programming.

Basically, it means that you are working with several different "objects" (often known as classes).

For example, an object could be a Sprite.
That sprite has several properties such as x, y, rotationX, rotationY etc.

Could anyone help me out here and elaborate further?

KGuare
offline
KGuare
29 posts
Nomad

Actionscript is just about identical to Java.


I think you're thinking of JavaScript. :]

Could anyone help me out here and elaborate further?

Why yes.

OOP is programming that involves different objects
that (in AS3) are subclasses of existing classes.
OOP is like piecing everything together with different parts,
as oppose to just one section of code that does everything.

For a good OOP tutorial, check out this video intro,
and after (if you're using AS3,)
this tutorial about the Document class.

Hope this helps you, Qwerty001. :]
dank
offline
dank
986 posts
Peasant

I think you're thinking of JavaScript. :]


No, I am talking about Java. Javascript is prototype based where Java is class based, which is the same as AS3's OO paradigm.
dank
offline
dank
986 posts
Peasant

Also,

OOP is where we 'objects.' Objects are like containers that can hold properties and more containers, perform functions, etc. This gives us a structure very similar to how we might organize the things around us and is such that makes a very ideal way to simulate and structure games with.

KGuare
offline
KGuare
29 posts
Nomad

Actually, i think we're both right.
In the sense that Java is Object oriented, and AS is also.
But when i saw you said it's almost exactly like Java,
i thought you mean syntax-wise.

Because i think ActionScript syntax was originally
modeled after JavaScript syntax.
But i haven't spent any time in Java, so,
i suppose you're also right.

Erasmus_Darwin
offline
Erasmus_Darwin
59 posts
Nomad

KGuare, you're right about the syntax being modeled after Javascript. Or more precisely, ECMAScript was a standardized scripting language created from Javascript, and then the ECMAScript standard was used to create ActionScript 2 and 3.

Showing 1-10 of 10