--SOLVED (See bottom)-- (I dunno if I'm supposed to delete this now or leave it up for someone else to benefit from on the off chance that they're a dolt like me)
Hello all!
I'm using QSprite to set up my sprites and have successfully configured an 8-directional sprite using the QSprite Editor. So hopefully that means my file formatting and naming is all in order. I am also using qABS in order to set up an action combat system.
With that in mind, I'd now like to use my spritesheet to have my character sprite throw a punch when I use the punch skill. Using the abssequence "user pose" I can successfully play a pose of my choice during the skill's activation. The trouble is, that pose only faces one direction, regardless of the direction that I put my pose in.
Even if I make 8 different poses for each possible direction of the punching pose in QSprite Editor, I don't know how I'd tell the skill which pose to pick in accordance with which direction the player is facing. The demo game for qABS unfortunately does not feature a demonstration for this either.
QSprite comes with a number of default poses (move, idle, dash) where the direction can be read simply by naming your pose "move1, move2, move3, move4, etc." But I don't see any option like that for attacks or other skills.
Any insights would be appreciated. Please let me know if there's any other information I can provide that would be helpful. I feel like I'm missing something that's super obvious.
Here are the documentation links for QSprite and QABS in case that's helpful.
Thank you very much!
SOLUTION: You just have to add 2,4,6,8 to the end of your poses in QSprite Editor, much like the default poses. For example, you could create atk2, atk4, atk6, and atk8 poses in QSprite Editor then use the abssequence "user pose atk" and it'll automatically choose between the 4 poses you created based on the direction your character is facing. You can also use 1,3,5,7 if you've implemented diagonal movement.
Hello all!
I'm using QSprite to set up my sprites and have successfully configured an 8-directional sprite using the QSprite Editor. So hopefully that means my file formatting and naming is all in order. I am also using qABS in order to set up an action combat system.
With that in mind, I'd now like to use my spritesheet to have my character sprite throw a punch when I use the punch skill. Using the abssequence "user pose" I can successfully play a pose of my choice during the skill's activation. The trouble is, that pose only faces one direction, regardless of the direction that I put my pose in.
Even if I make 8 different poses for each possible direction of the punching pose in QSprite Editor, I don't know how I'd tell the skill which pose to pick in accordance with which direction the player is facing. The demo game for qABS unfortunately does not feature a demonstration for this either.
QSprite comes with a number of default poses (move, idle, dash) where the direction can be read simply by naming your pose "move1, move2, move3, move4, etc." But I don't see any option like that for attacks or other skills.
Any insights would be appreciated. Please let me know if there's any other information I can provide that would be helpful. I feel like I'm missing something that's super obvious.
Here are the documentation links for QSprite and QABS in case that's helpful.
Thank you very much!
SOLUTION: You just have to add 2,4,6,8 to the end of your poses in QSprite Editor, much like the default poses. For example, you could create atk2, atk4, atk6, and atk8 poses in QSprite Editor then use the abssequence "user pose atk" and it'll automatically choose between the 4 poses you created based on the direction your character is facing. You can also use 1,3,5,7 if you've implemented diagonal movement.