What's new

AS3 plataform engine (getting ideas)


Thy

Jungle Girl
Joined
Feb 10, 2011
Messages
8
Reputation score
0
hey, so i want to make an flash AS3 plataform engine from zero.
This will suport H-games, like the mario-rape style.

Hope the engine will work good. Thats why i'm planning alot, before start to code (downing flash CS5 right now). This engine will be fast and smooth, but it will not have alot of features.

So, i'll describe what development kind i'll use, below:
______________________________________________________________
I'll work on 2 project:
- The Engine
- The Cene Maker

The engine (aka. game) will have, inside it, all the 'cenes' that will be used. The 'cenes' is nothing more than code, saying what and where images, characters and collisions will be used, all information that an cene needs.

What will 'generate' that information will be the 'Cene Maker'. Using it will be easy:
Just on the flash, with the CeneMaker.fla, you will import images, characters and collision boxes to the stage. Then you run the .swf, and you will recive the generated texto from that cene, informations like:
- Char used. Char that may be used (explain later).
- Images used (static images [background, plataform, etc], animated images (animated plataform, etc).
- Boxes (where chars can walk).
- Events (I havent planned this yet).
Thats all I can get, before i start to code. Thats is necessary, i'll say again, for imagem caching, image merging, image disposing (yea, will have some BitmapData class work). Also, collision will be independent from images, so we can optimize that.

So, for now i've seen how the CeneMaker will work. Lets take a look in the main Engine.fla:
- Splash screen, menu, etc.
- cene list.
We also will have more .fla, like:
- Chars.fla
- Images.fla
Not done yet. Each char and imagem will have its own .fla:
- CharA.fla; CharB.fla; ..
- ImageA.fla; ImageB.fla; ..

Finnaly, we will analize the Char.fla and Image.fla, what information must be inside those files. Lets see CharA.fla:
- Name. For example: "CharA", or "CharB", or "CharA+CharB". That kind of name will be noticed, and the engine will think 'ah, looks like the CharA is the hero, and CharB is the monster. When CharA and CharB colide, CharB will rape CharA. CharA and CharB dont exists anymore, and we have "CharA+CharB" as a single character', wich will be the rape animation, noticed as character.
Lets say that "CharA+CharB" (rape) collides with "CharC", then the engine will look for "CharA+CharB+CharC" character, an gang bang.
With the CeneMaker project, he will cache all the characters that is in the cene, also, he will look for all the possible group rape, and cache it. That should make things really fast.
Lets keep going, we are on CharA.fla proprieties (code inside MC):
- Name (already said).
- Box. Just an rectangle. For now, this box is static, just follow the char (if the char moves around).
- Something to care: Timeline animation. The animation must happend only in the charA.fla timeline, not inside another MC's. Thats because the cache system will save every frame of the animation in an BitmapData vector list, and we will have an faster rendering, more fps.

For last, we have the imageA.fla, that have:
- Type. It can be "static" or "animated". Both will be cached to bitmapData's, but in different ways.
- Speed. Its just the speed in relation to the hero. If the image is an background, the speed should be less than 1.0 ; if its part of the platafor, the speed should be 1.0 , that means that the image will move the same portion that the character moves. This propriety will also be noticed on the image cache system.
- Layers. This can be a number, an string, whatever. Some layers example, in order: background1, background2, charLayer, frontground1, frontground2. With that, we have all information we need to make an really good image caching system.

Last words:
With that system style, the development is easy for developers and for coders. I mean, when you have just an 'CharG43.fla' update, the programmer (or other designers) dont need to download everything again.. just that single .fla file, and just have to replace it on the project source.
__________________________________________________________

Alright, this is big. But its just the planning before the coding.
I hope designers and programmers say what they think about the engine, basead on theyr experience, or ideas.
if u dont got something, ask and i'll try to fix it.

When the planning is 100%, we just 've got to code :3
 

Loli Defense Force

Lili
RP Moderator
Joined
Nov 10, 2008
Messages
2,679
Reputation score
76
Re: AS3 plataform engine (getting ideas)

From the looks of it you're not really doing a as3 platform engine, rather you are doing a flash platform engine (as you're incorporating as3 + moveclips).

My initial reaction is that if you're doing something in as3, you should probably develop it in a flash IDE rather than in adobe flash, as there are less legal issues revolving around that, and also most flash IDEs make programming much easier due to the syntax highlighting and autofill. Plus most of them allow some sort of importing of movieclips anyway.
 
OP
T

Thy

Jungle Girl
Joined
Feb 10, 2011
Messages
8
Reputation score
0
Re: AS3 plataform engine (getting ideas)

mmm.. i never used this flash IDE.. but i used to think that flash ide = adobe flash CS5, CS4, CS3..

anyway, i am used to code in 'flash develop'. Its very light (except for the flex SDK), and have those 'helpful stuff' ^^
 

Loli Defense Force

Lili
RP Moderator
Joined
Nov 10, 2008
Messages
2,679
Reputation score
76
Re: AS3 plataform engine (getting ideas)

Flashdevelop is one of the flash IDE, basically it's just any program that allows you to write, compile and test as3. I would offer to help but I'm bogged down on other projects right now.
 
OP
T

Thy

Jungle Girl
Joined
Feb 10, 2011
Messages
8
Reputation score
0
Re: AS3 plataform engine (getting ideas)

I see..
Well, thanks anyway :3
 

Bowser

Lurker
Joined
Jun 2, 2009
Messages
120
Reputation score
9
Re: AS3 plataform engine (getting ideas)

Sounds like an excellent idea. With the number of people that have been tossing up ideas of games they want to create, having the right toolbox available to them would help a lot. This isn't exactly my forte, so I doubt I could help, but I'd like to voice some support for you.

With the a good, easy to utilize engine available, maybe we'll see a lot more homegrown content being produced.
 
Top