Hey guys. I'm new here but I'm getting very good at coding. I'm so modest lol. Anyway I'm making a Pokemon game I've done most of the sprites and animations but I need help with damage calculations (the advanced calculations from the real game)
More about that here: http://www.serebii.net/games/damage.shtml
What happens is the damage doesn't calculate or send to the opponents HP properly.
Theres mine.
http://img96.imageshack.us/f/damageh.png/
Any problems?
In the over-world the sprite takes 2 steps at a time. I what him to take one if you tap the key and then the other if you tap it again.
So, any help?
Offline
I prefer this site for the formulas in pokemon
http://www.smogon.com/dp/articles/damage_formula
If you look at the project in my signature, collab monsters you can see the proper formulas (without stab and some other modifiers).
Collab Monsters, is actually more or less a pokemon clone with unique monsters, you can catch and train pokemon, learn new moves, level up, ect.
Offline
Oh sorry, I forgot to say where the calculations are. Look at the "moves" sprite and all the scripts for attacks are located there.
Heres a pic. 
Not sure if this is 100% accurate in the case of the modifiers but in any case its pretty close and does a good job with damage.
Just as a tip I'll tell you what I think you need to do and in what order.
1. Basic battle engine with complete forumla with stats n stuff
2. Make it so there can be several moves you can use
3. Make it so that you can switch monsters
4. Make items
5. Leveling up
6. Whatever else left to do for the battle engine
7. Overworld, maps
8. Visuals
I know doing it this way may be harder because you are leaving the easiest parts for last but I think you will have more success if you do it this way. I am also making my own realistic pokemon game
Last edited by archmage (2011-04-18 13:36:22)
Offline