• 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.

Research: Sprite variations based on personality values.

Kejaba

Apiring hacker.
  • 2
    Posts
    13
    Years
    • Seen Jul 10, 2012
    Sprite variations based on personality values in R/S/E.

    Recently I took a look at how fantastically complex Spinda's pattern generation in R/S/E was, and it got me thinking. Could a similar system be utilized on all Pokemon in a given hack? Specifically, my desire is to allow randomly generated variations in a Pokemon's pose (i.e., one is sitting, one is standing, one is dancing, whatever floats your boat), and, though I have the ability to make all of the sprites in question, I have absolutely no idea how to go about bringing this concept into fruition. Therefore, I've come here.

    What I know so far:
    The locations of Spinda's four spots are generated using the personality value, in the manner of breaking the hexcode down into four segments, like 00 00 00 00. Each of these segments are assigned to a spot, and each digit of the segments decides the X and Y coordinates of the top-left point of each spot. (On a sidenote, this is interesting because it allows for 4,294,967,296 combinations, and that doesn't even include shinies.)
    Relatedly and more generally than just with Spinda, the visual gender differences also work on a similar system, though I'm not quite as familiar with that one; I suspect, however, that the gender code is the key to my question.

    So, my question is, in essence: is pose variation possible? And, if so, how could I go about making this change? It's worth noting that I'm only interested in 2, 4, maybe 8 variations; drawing up 4,294,967,296 sprites for every Pokemon would probably kill my spriter ;P
     
    Last edited:
    It's very easy to do this. Very very easy. However, the space required is the true limitation here. But otherwise, it's very simple. All you'd have to do is change the routine that loads the image to be some kind of switch statement. It's really not complex if you know what you're looking for. :)
     
    Yeah, I was concerned with the space issue until I decided to use only Kanto Pokemon with an Emerald base, so I have more than ample extra space once I remove all of the Gen 2 and 3 Pokemon. Now, I'm off to dig around and see what I can find. Thank you very much :)
     
    Emerald, 'ey? That adds some difficulty, but not too much. If you don't mind keeping the same animations (but with the different sprites).
     
    Back
    Top