Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

Reply
 
Thread Tools
  #1    
Old January 17th, 2012 (3:37 PM).
korjamer's Avatar
korjamer korjamer is offline
Pixel Artist
     
    Join Date: Apr 2011
    Gender: Male
    Nature: Relaxed
    Posts: 19
    Hi, Does anyone know where in the script pokebattle_actualscene the code for moving the Pokemon and HP box up and down a pixel while you select an attack is? If so, do you know how to disable it and keep the box/Pokemon from moving? I included animated GIF files for the Pokemon sprites in my game and it looks really bad animating AND bouncing up and down.
    Any ideas? I'd be really grateful for some help. Thanks in advance!
    Reply With Quote

    Relevant Advertising!

      #2    
    Old January 26th, 2012 (11:48 AM).
    venom12's Avatar
    venom12 venom12 is offline
    Pokemon Crystal Rain Relased
       
      Join Date: Sep 2006
      Age: 26
      Gender: Male
      Nature: Adamant
      Posts: 529
      Simple find in Pokebattle_actualscene this class PokemonBattlerSprite < RPG:prite

      then in this code
      Code:
      def update
         @frame+=1
         @updating=true
         if ((@frame/9).floor&1)==1 && @selected==1 # When choosing commands for this Pokémon
           @spriteYExtra=2
         else
           @spriteYExtra=0
         end
        
       end
      change @spriteYExtra=2 to @spriteYExtra=0

      This is for pokemon sprite now for hp box

      in class pokemondatabox search for def update

      search for this

      Code:
       if ((@frame/10).floor&1)==1 && @selected==1 # When choosing commands for this Pokémon
           [email protected]
           [email protected]+2
         elsif ((@frame/5).floor&1)==1 && @selected==2 # When targeted or damaged
           [email protected]
           [email protected]+2
      and both [email protected]+2 change to [email protected] or [email protected]+0

      hope i help
      Reply With Quote
        #3    
      Old January 27th, 2012 (6:27 PM).
      korjamer's Avatar
      korjamer korjamer is offline
      Pixel Artist
         
        Join Date: Apr 2011
        Gender: Male
        Nature: Relaxed
        Posts: 19
        Wow, that was pretty easy! Thank you!
        Reply With Quote
        Reply
        Quick Reply

        Sponsored Links
        Thread Tools

        Posting Rules
        You may not post new threads
        You may not post replies
        You may not post attachments
        You may not edit your posts

        BB code is On
        Smilies are On
        [IMG] code is On
        HTML code is Off

        Forum Jump


        All times are GMT -8. The time now is 7:15 PM.