View Full Version : Turn-Based Battle Engine
MOOGLEFIGHTER
05-30-2006, 03:49 PM
Does anybody have/know an open source, or tutorial on making Turn-Based Battle Engines? That I can decompile and learn quick?
cryzabey
05-30-2006, 05:49 PM
ask matt about his
bactac
05-30-2006, 06:06 PM
if(_root.playerturn==1){
_root.stepsyougot=30
}
if(right is down and stepsyougot>0){
_x += speed
steps-=1
}
[blah]
if(stepsyougot<=0){
_root.playerturn=2
}
try to make it as.
or somethign like this, i used this code a long long long time ago
http://www.thesecretbase.com/xelaimagehost/files/17/TBG.fla
Fla file of mine. Take a look and do what you want with it.
MOOGLEFIGHTER
05-30-2006, 06:21 PM
Thanks Matt.
Np. If you have problems just ask.
MOOGLEFIGHTER
05-30-2006, 07:15 PM
// Movement
if (_root.turn==1&&_root.travel<_root.maxsteps&&Key.isDown(83)) {
_y += paceSpeed;
_root.travel++
For the movement, when it says 83, which button is it refering to.
If I were to replace the arrow keys in place of that number, what would I put?
Here's what I have so far:
http://s59.photobucket.com/albums/g296/mooglefighter/?action=view¤t=rpgtest.swf
Controls: wasd
I plan on adding enemies + items that replenish your energy.
83=s
http://i17.photobucket.com/albums/b57/mattsflash/keykeys.swf
Use that to figure out key numbers.
Soon to be flash master
05-31-2006, 04:31 AM
is there anything you dont know matt? :p you may want to use a more... original idea for the finished game Moogle.
MOOGLEFIGHTER
06-01-2006, 01:34 PM
http://img244.imageshack.us/my.php?image=rpgtest25oq.swf
It's something different, I'm going to start trying making my own weapons.
Click the blue guy for instructions.
zakob
06-01-2006, 01:47 PM
Pretty cool, post more updates when you have 'em!
Jshaw71
06-01-2006, 02:09 PM
I don;t think simply walking should take energy, attacking and runing yes, but not walking, come on...
// Movement
if (_root.turn==1&&_root.travel<_root.maxsteps&&Key.isDown(83)) {
_y += paceSpeed;
_root.travel++
For the movement, when it says 83, which button is it refering to.
If I were to replace the arrow keys in place of that number, what would I put?
Here's what I have so far:
http://s59.photobucket.com/albums/g296/mooglefighter/?action=view¤t=rpgtest.swf
Controls: wasd
I plan on adding enemies + items that replenish your energy.
MOOGLEFIGHTER
06-01-2006, 02:27 PM
*new*
http://img480.imageshack.us/my.php?image=rpgtest37gq.swf
Jshaw71
06-03-2006, 07:13 PM
*new*
http://img480.imageshack.us/my.php?image=rpgtest37gq.swf
make a one player mode, I would suggest making the sword swing wider, maybe a charge/spin attack, like in LOZ link to the past but that's just me, maybe more than one enemy, but these are just my ideas
cryzabey
06-03-2006, 07:25 PM
it's kewl and all but way to easy to beat
MOOGLEFIGHTER
06-04-2006, 10:14 AM
You can't beat it, it's a 3 player game, so all you are doing is playing with yourself. XD
Malignus
06-04-2006, 10:36 AM
Yes...it would be cool if you could parry as well (by holding down shift, perhaps).
vBulletin® v3.7.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.