When sine behaviour is used to set the width of sprite object, it will always return to positive value after "on landed" -event.
Attach a Capx
This example is mine:
This is example from Kyatric :
Description of Capx
I want to squash and stretch player sprite after "on landed" -event. I'm doing it with 2 sine behaviours, WidthSine and HeightSine. "on landed" -event will activate both sines.
When player is not moving and lands on ground, sprite goes from mirrored to not mirrored when sine behaviour is activated. When sprite is not mirrored everything works fine. Also, this problem only occurs when player is not moving. If player is moving, then mirroring will work.
Steps to Reproduce Bug
- press left (player will turn left (is mirrored))
- wait player to land
sprite go from mirrored to not mirrored.
sprite stay mirrored.
- Chrome: (YES)
- FireFox: (YES)
- Internet Explorer: (YES)
- NW.JS: (YES)
Operating System and Service Pack
Windows 7 Professional SP1 32-bit running through vmware Fusion 5.0.5 (1945692) on Mac OS X 10.9.5.
Construct 2 Version ID