how should I start to program in openbor?

Duck@ss Farm

New member
okay so here's the deal:
I want to program step by step in openbor
I've got openbot stats so,I need to start with animations for example right
before I start with anims,I need to have the sprites (I already have sprites)
I know that in mugen is the clsn boxes in anims,I know that
so I wanted to ask you,what code should I use on start?
 
Clsn are divided in 2 types in openbor.
Bbox (blue boxes in mugen)
attack (red boxes in mugen)

I suggest you to read the openbor manual.
It will give you a lot of good info about what is possible with the engine and how to do most of it.

Just like in mugen, a good way to learn is to open a "simple" mod and try to edit it with the manual support.
 
Duck, let me share some points since we are mugen coders and some things are very different. Each engine have points that its better and worse than the other, but you will get it quickly.


IMAGES
- in openbor, you don't need to crop the sprites, the engine is very optimized for it and does it on the fly. So, make all images using just one offset, set it one time per animation and its done. Setting multiple offsets will, in the end, to consume more memory.

- use PNG over all other formats (.PCX, .GIF. BMP). The file is smaller. just remember that, in png, the transparent color is the FIRST ONE, not the LAST ONE like in .PCX. To make it easier in Photoshop, choose EXACT (under indexed color) and on FORCED click custom and put the background color in the first position. Do not use interlace  on png, because as DC said, it will just consume more memory.

CLSN BOXES
- you just set one clsn box (per type) on each frame. lke Ned said, Bbox (body box) are the blue clsn in mugen, and attackboxes are the red ones. You can't set two bbox per frame, for example.

- All clsn boxes in OpenBOR have de "default" attribute. So, if you set one bbox or a attackbox it will be active for all the rest of the animationt, contrary to what happens in mugen. However, if you put in a box attack frame and put another box in the following frame, the attack will not hit twice - again, contrary to mugen (in other words, its not "persistent" as we call in mugen). To make a move hit multiple times, you need to put "fastattack 1" on the animation header (where you put bbox, etc) and you need to add a blank attack box. To make it, just add "attack 0" before the frame, like this:

attack 70 47 36 60 3 1 0 0 15 15
frame data/chars/warmachine/fs2.pcx
attack 0
frame data/chars/warmachine/fs2.pcx
attack 70 47 36 60 3 1 0 0 15 15
frame data/chars/warmachine/fs2.pcx

POSITION

Remember we are working in a 3D space, so in OpenBOR we have X, Y (often called A) and Z, like Winmugen had (now its just X and Y). This is one of the points that both engines are very different:

- In Mugen, Y can be negative. In OpenBOR, not. Once the entity touches the "floor" (its a bit different concept), it won't sunk bellow the ground like in some errors in mugen. Heck, I never undertood why in the blood hell we can go BELLOW the ground in mugen, but anyway...

- Mugen uses reversed Y values, while OpeBOR uses the normal ones. In mugen, to make something go up, you set a negative Y velocty, but in OpenBOR you set a POSITIVE one, while negative velocities will make it go to the ground. And if the entity is on the ground, it won't get nowhere.

- Y position is Altitute (hence the "a"), z is the depth.

There are a lot of other things to explain which are different on both engines (like the friction, which is absent in OpenBOR, for example). But one of the areas were OpenBOR surpass Mugen is that if the engine doesn't have something you can do it manually, via script, in most of times. Sure, there are some limitations, but we have far more control. I will explain more once I have time.

I was going to write a Mugen To OpenBOR Migration guide, but I never finshed it: http://www.chronocrash.com/forum/index.php?topic=817.msg7076#msg7076

I suggest you to read the manual, there is a lot of things to read but its not hard. Judging from my short experience, OpenBOR is a tad easier than mugen (but some parts can be very tricky to do): http://dcemulation.org/index.php5?title=OpenBORManual

You can pm me if you have any trouble on the migration. While I don't have 5% of the experience I have in Mugen, there are some issues that I already gone though :)

Thanks
 
Back
Top Bottom