• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Changing the trajectory of the player's thrown pokeballs in battle

ReVaN777

Creator of Pokemon Titanium
108
Posts
12
Years
Does anyone know how to edit the Players pokeball throw during battles,

this is the script that needs to be edited but i don't know how to edited it? any help would be appreciated.

Code:
  def pbSendOut(battlerindex,pkmn) # Player sending out Pokémon
    while inPartyAnimation?; end
    balltype=pkmn.ballused
    ballbitmap=sprintf("Graphics/Pictures/ball%02d",balltype)
    pictureBall=PictureEx.new(32)
    delay=1
    pictureBall.moveVisible(delay,true)
    pictureBall.moveName(delay,ballbitmap)
    pictureBall.moveOrigin(delay,PictureOrigin::Center)
    # Setting the ball's movement path
    path=[[0,   100], [10,  134], [21,  122], [30,  112], 
          [39,  104], [46,   99], [53,   95], [61,   93], 
          [68,   93], [75,   96], [82,  102], [89,  111], 
          [94,  121], [100, 134], [106, 150], [111, 166], 
          [116, 183], [120, 199], [124, 216], [127, 238]]
 

ReVaN777

Creator of Pokemon Titanium
108
Posts
12
Years
the Trajectory, my battle system is side by side set up and the pokeball throw is still from center of the player side and the ball lands on the bottom of the player side of screen i want it to it to be the same as the opponents side.. if that makes any since.
 
43
Posts
8
Years
Actually , if you're using side by side battle system of Zeak6464, you must ask him instead . Anyway , If you want to change where pokeball appear , it goes here:
(I'm not tested, but it should work. However , backup it first)
path=[[0, 100], [10, 134], [21, 122], [30, 112],
[39, 104], [46, 99], [53, 95], [61, 93],
[68, 93], [75, 96], [82, 102], [89, 111],
[94, 121], [100, 134], [106, 150], [111, 166],
[116, 183], [120, 199], [124, 216], [127, 238]]
and the id number (xy) are pokeball display positions. You can change it, then check your game.
 
Back
Top