Handling information for multiple sprites? (More than 8 variables, potentially)
Root / Programming Questions / [.]
Gaelstrom_ValenceCreated:
The common information I have for sprites that I might allocate with spvar are:
1. Type
2. X pos
3. Y pos
4. X velocity
5. Y velocity
6. Z pos (for topdown games.)/lane (for sidescrollers)
7. Z velocity
8. misc things. (Timer for projectiles/pickups, state (on ground, in air, was hit, etc) for ai)
Thing is, I feel like I need more information? Like say, how many items are in a stack for items entities, quality of non stackable stuff. (Maybe those specific things are too ambitious for me at the moment, but there are other things.)
For ai stuff, there's stuff like, what animation are they on.
And I believe I can't just use SPOFS OUT for x and y pos, as it'll give me incorrect info should they go offscreen. (Maybe this is different if I were to use splink.)
I've mulled over different ways to use less variables, like maybe using HEX values to combine some bits of data, but now I'm starting to think it'd just be better to call it quits and use arrays?