News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

How does sprpriority work?

Started by Nny, April 06, 2016, 11:56:07 AM

Previous topic - Next topic

Nny

I want this behind the opponent, it's just a little stabbing animation.
i've tried to put the sprpriority very low, from 0 to -5, and i thought that'd make it behind the opponent. maybe im just not getting something here.

JustNoPoint

Are you using both of these together in your hitdef?

p1sprpriority = drawing_priority (int) This is the drawing priority of P1's sprite if the move hits or is guarded by P2. Together with the p2sprpriority parameter, it controls whether or not P1 is drawn in front of or behind P2. The default value is 1.

p2sprpriority = drawing_priority (int) This is the drawing priority of P2's sprite if the move hits or is guarded by P2. The default value is 0

Nny

Oh cool, nice to know! Thanks man.