sine set cycle position doesn't refresh the current position

Bugs will be moved here once resolved.

Post » Wed Dec 14, 2016 9:48 am

Problem Description
sine set cycle position doesn't refresh the current X position until the next tick if the motion is set to horizontal, the self.sine.value itself is changed though (not showed here)

Attach a Capx
https://1drv.ms/u/s!AjkoCSebIn9JjDrxr8-o6KPOcPOQ

Description of Capx
A single lonely sprite is moving on its horizontal axis, with a sine, When you press R, the cycle position is saved, the layout restarts, and the cycle position is immediatelly set back, however, we can see the sprite being at its original position for one tick before going back to it's current position

Steps to Reproduce Bug
  • run the capx inside the browser of your choice
  • keep smashing R, see the teleporting sprite for one tick

Observed Result
when the layout restarts, the sprite is centered for one tick

Expected Result
the result to be invisible

Affected Browsers
  • Chrome: Yes
  • Opera:Yes
  • Edge: Yes, it is even worse it seems
  • nw.js : Yes

Operating System and Service Pack
Windows 10, do not know my service pack

Construct 2 Version ID
r240
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Wed Dec 14, 2016 9:54 am

I have tried the example in NW.js, Chrome, Internet Explorer and Firefox, and can confirm this bug.
B
42
S
23
G
20
Posts: 155
Reputation: 13,477

Post » Wed Dec 21, 2016 2:19 pm

Thanks, should be fixed in the next build.
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,351


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests