Problem Description
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:
h*t*t*p*s://www.dropbox.com/s/8fxwib0eri1a8pr/squash%20and%20stretch%20demo%20r227.capx?dl=0
This is example from Kyatric :
h*t*t*p*s://www.dropbox.com/s/f2uxrxf8hbti361/sine_width_unmirror_r229.capx?dl=0
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))
- jump
- wait player to land
Observed Result
sprite go from mirrored to not mirrored.
Expected Result
sprite stay mirrored.
Affected Browsers
- 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
r227 32-bit