• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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.

Battle Scene Positioning Help

  • 7
    Posts
    14
    Years
    • Seen Feb 10, 2012
    I'm sure you all can see by now how competent a scriptwriter I am. (This is sarcasm, I am a terrible scriptwriter).

    I need to change the Player Pokemon's Y. It's floating 6 pixels above where I need it to be. I rather not use the altitude in Pokemon.txt, Unless that is the only way of doing it.

    I also need to move the enemy trainers sprites (Not Pokemon). e.g. Leader Roxanne.

    I'm trying my best to do it myself, but I can not read RGSS. It's like a blind man in a field of landmines... or maybe not.

    Any help is appreciated.
     
    Search about "@sprites["trainer"].y-=@sprites["trainer"].bitmap.height-128" and "@sprites["trainer2"].y-=@sprites["trainer2"].bitmap.height-128", change the 128 number
    For the pokémon I haven't tried, but I think that you need to search for "def pbPositionPokemonSprite(sprite,left,top)" and change the "sprite.y" value.
     
    Search about "@sprites["trainer"].y-=@sprites["trainer"].bitmap.height-128" and "@sprites["trainer2"].y-=@sprites["trainer2"].bitmap.height-128", change the 128 number
    For the pokémon I haven't tried, but I think that you need to search for "def pbPositionPokemonSprite(sprite,left,top)" and change the "sprite.y" value.

    I wasn't able to change the Pokemon altitude. It wouldn't let me search the entire phrase, too long I guess.
     
    Put only a portion of this code using control+shift+f and search for the correct ones.

    It's cool i figured ut out. Im learjing RGSS now snyways, I've been using RMXP for a couple years and its about time I learn to script xD
     
    i still can't work it out...searched for the section of script you suggested and i can't find anything that works :S might just be me being stupid tbh
     
    Back
    Top