Page 2 of 2
Re: Transformation Matrices
Posted: Fri Aug 23, 2013 12:53 pm
by Davidobot
Mikepicker wrote:Perfect! Thank you so much for the suggestion! One last question:
is there something like Duff-Porter (
http://ssp.impulsetrain.com/2013-03-17_ ... Modes.html) in order to handle image overlay? (This because legs have to stay
behind the body, but at the same time when player kicks the opponent, they have to be
in front of the opponent body)
I think you will need just need to swap the positions of the player and the enemy in the drawing loop. Something like an automatic table sorter.
Re: Transformation Matrices
Posted: Fri Aug 23, 2013 1:30 pm
by vrld
Sadly, no. The
wiki lists the blend modes LÖVE supports, though that list does not seem to be very helpful.
Again you have at least two options:
- Change the draw order depending on the state, i.e. draw legs, then body when not kicking, body, then legs otherwise. This solution should fit nicely into your current animation framework.
- Have a separate set of legs, that gets only drawn when the character is kicking.
Re: Transformation Matrices
Posted: Sat Aug 24, 2013 12:10 pm
by Mikepicker
Again, thanks so much for the advices, I hope to post a playable version as soon as possible