Can indicate that a animation is flipped, which will *-1 on the x.
This commit is contained in:
parent
c4fcb41c34
commit
2ecd8528ea
7 changed files with 45 additions and 13 deletions
|
|
@ -99,10 +99,13 @@ namespace components {
|
|||
current = 0;
|
||||
subframe = 0.0f;
|
||||
}
|
||||
|
||||
if(flipped) {
|
||||
scale_out.x *= -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
namespace animation {
|
||||
using namespace components;
|
||||
using namespace textures;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue