ForumsProgramming ForumAS3 Game Classes

6 4067
kevinseven11
offline
kevinseven11
36 posts
Nomad

Okay so i know basics and kinda more but id like to know which classes are usauly used with games. Im talking about the over head veiw game.

  • 6 Replies
joeybetz
offline
joeybetz
107 posts
Shepherd

I'm not quite sure what you mean by which classes are used in games. Do you mean like Actionscript built in classes like Sprite and MovieClip or custom classes made by developers? Can you give an example?

HardSimse
offline
HardSimse
218 posts
Nomad

Maybe he means classes in school?

I dont know :S?

Pat61
offline
Pat61
6 posts
Nomad

I think he wants to know codes/Scripts for Overhead games, like tower defences.

Fighterlegend
offline
Fighterlegend
44 posts
Nomad

Erm, Classes are in AS3..

You can use something like
&ltre><code>function spawnCop(xpos:int, ypos:int, look:Class){
//do stuff
}
spawnCop(random(2000),random(2000), cop1);</code></pre>

Something like that would be used.. If that's what you would talk about..


But you will need to know a bunch of code for a successful overhead game..

Fighterlegend
offline
Fighterlegend
44 posts
Nomad

Erm, forgot this doesn't have the code and pre stuff like Kong xC

kevinseven11
offline
kevinseven11
36 posts
Nomad

i acualy meant like tween custom stuff like that

Showing 1-6 of 6