I am currently working on a Pokemon Battle Engine. I just need some MAJOR help. For instance, I need there to be damage to the Pokemon and keeping the battle paced is extremely hard post some helpful tips if you have any. PO
Offline
The easiest way would be to have two sprites, one for each Pokemon. Then you could have them interact using broadcasts. Here is an example for pkmn 1's scripts:
When I receive p1's_turn Set damage to (pick random min_damage to max_damage) broadcast hitP2 broadcast p2's_turn When I receive hitP1 change health by damage * -1
P2's scripts would mirror these appropriately. Of course, your scripts will likely be more complex depending on your needs, but hopefully this will get you started. Hope that helps!
Offline
If your playing as one of the pokemon fighing against another make say 4 different sprites that show then do
<when[ attack 1 ]clicked>
<broadcast[ Attack 1
<hide>
Then for the enemy
<when I receive[ Attack
<repeat( <pick random( 5 )to( 10
<change{ enemy health }by( -2
<wait( 1 )secsc>
<broadcast[ Enemy attack
Then back to you
<when I receive[ Enemy attack
<repeat( <pick random( 5 )to( 10
<change{ your health }by( -2
Then for the attack boxes
<when I receive[ Enemy attack
<wait( 1 )secsc>
<show>
Fianaly, for both (using the health variables respectively)
<when green flag clicked>
<forever if><( <{ Health }> <<> 1 )>
<broadcast[ Dead
<hide>
Offline
Thanks for the help guys. I have damage and attacks. Any ideas for exp. points or *items?
*# of items and use
eg. http://scratch.mit.edu/forums/viewtopic.php?id=58988#req_messagehttp://scratch.mit.edu/forums/viewtopic.php?id=58988#req_message
Offline
Download this and look at it:
http://scratch.mit.edu/projects/TheSaint/859522
Offline
Ive made a Pokemon game. download it and have a look. it might help, it might not. good luck! http://scratch.mit.edu/phttp://scratch.mit.edu/forums
Offline