Transformation Matrices

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
Davidobot
Party member
Posts: 1226
Joined: Sat Mar 31, 2012 5:18 am
Location: Oxford, UK
Contact:

Re: Transformation Matrices

Post 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.
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Transformation Matrices

Post by vrld »

Mikepicker wrote:One last question:
is there something like Duff-Porter (http://ssp.impulsetrain.com/2013-03-17_ ... Modes.html) in order to handle image overlay?
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:
  1. 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.
  2. Have a separate set of legs, that gets only drawn when the character is kicking.
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
Mikepicker
Prole
Posts: 6
Joined: Thu Aug 22, 2013 5:12 pm

Re: Transformation Matrices

Post by Mikepicker »

Again, thanks so much for the advices, I hope to post a playable version as soon as possible :)
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 4 guests