Sine behavior angle update bug

Report Construct 2 bugs here.

Post » Mon Sep 25, 2017 8:23 am

Problem Description
The "update sine initial state" action causes the Init() function in the plugin to run to set the initial conditions. When angle sine is the selected mode, the Init() function converts the magnitude from degrees to radians, which is ok for the first Init() but for subsequent updates the function factors this.mag (already in radians) to radians again.

Attach a Capx

Description of Capx
Two objects, one with sine (oscillate angle). Right arrow key to rotate second object and reset initial conditions of sine object.

Steps to Reproduce Bug
  • Right arrow key
  • Observe the oscillation apparently stops

Observed Result
The object appears to stop oscillating because the sine oscillation angle size becomes very small.

Expected Result
The degrees to readians conversion in Init() should only run during OnCreate() and not when updating the initial prams, because the angles are already in radians.

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
W10 x64.

Construct 2 Version ID
r247 64 bit.
A big fan of JavaScript.
Posts: 2,228
Reputation: 44,888

Return to Bugs

Who is online

Users browsing this forum: No registered users and 0 guests