TehSquidly
. . .
- 103
- Posts
- 16
- Years
- Washington
- Seen Feb 4, 2025
About this engine
This was made in Flash CS3 using AS2, I was experimenting with arrays if you dont know what those are. They hold tons of data using unique names,numbers and variables anyway.
I made this for my upcoming game I've been working on for awhile I decided to make to start over and make this. It's not exactally like the original as you can tell and I didnt include evolution because I would just be recycling old formulas and a waste of time for this test.
How it works
So the basic things this engine does is hold information on pokemon you've caught with variables like : Name,Type etc.
As you level up it replaces stored moves with newer ones just like in the original along with the type of the move using this array
var Zubatb:Object = {lv:2,gender:"male",type:"Flying/Poison",named:"Zubat",hp:40,atk:45,def:35,spc:40,spe:55,moves:"Leech Life",move:"Bug",move1:"-----",move2:"-----",move3:"-----",moves1:"-----",moves2:"-----",moves3:"-----",notype:"-----"};
And the current way I'm having the pokemon gain stats is by having a random number depending on what there best at
_root.Zubatb.lv ++;_root.gogogo.gotoAndStop(1);
hp = Math.round(Math.random()*3)
atk = Math.round(Math.random()*4)
def = Math.round(Math.random()*2)
spc = Math.round(Math.random()*3)
spe = Math.round(Math.random()*5)
_root.Zubatb.hp += hp;
_root.Zubatb.atk += atk;
_root.Zubatb.def += def;
_root.Zubatb.spc += spc;
_root.Zubatb.spe += spe;
I dont really like that idea for increasing stats. Do you have any tips on how I can make this better? Thanks.
Preview
This was made in Flash CS3 using AS2, I was experimenting with arrays if you dont know what those are. They hold tons of data using unique names,numbers and variables anyway.
I made this for my upcoming game I've been working on for awhile I decided to make to start over and make this. It's not exactally like the original as you can tell and I didnt include evolution because I would just be recycling old formulas and a waste of time for this test.
How it works
So the basic things this engine does is hold information on pokemon you've caught with variables like : Name,Type etc.
As you level up it replaces stored moves with newer ones just like in the original along with the type of the move using this array
var Zubatb:Object = {lv:2,gender:"male",type:"Flying/Poison",named:"Zubat",hp:40,atk:45,def:35,spc:40,spe:55,moves:"Leech Life",move:"Bug",move1:"-----",move2:"-----",move3:"-----",moves1:"-----",moves2:"-----",moves3:"-----",notype:"-----"};
And the current way I'm having the pokemon gain stats is by having a random number depending on what there best at
_root.Zubatb.lv ++;_root.gogogo.gotoAndStop(1);
hp = Math.round(Math.random()*3)
atk = Math.round(Math.random()*4)
def = Math.round(Math.random()*2)
spc = Math.round(Math.random()*3)
spe = Math.round(Math.random()*5)
_root.Zubatb.hp += hp;
_root.Zubatb.atk += atk;
_root.Zubatb.def += def;
_root.Zubatb.spc += spc;
_root.Zubatb.spe += spe;
I dont really like that idea for increasing stats. Do you have any tips on how I can make this better? Thanks.
Preview