Solved:
trouble-operating-returnvalue_p1064184?#p1064184
Problem Description
After triggering a chain of functions that does literally nothing, the one function that does an actual thing quits giving the right result.
Attach a Capx
https://filebin.net/g3iiun5rydcxsar7
Description of Capx
A function "Zéro" changes its return value twice: first to 100, then under a specific condition to 0. the final result is displayed onscreen.
When pressing Space, a function "Wreck" is called, it then calls another function which does nothing.
Expected Result
The condition to change Zéro()'s result 0 should always be right and thus, the function Zéro() should always return 0
Steps to Reproduce Bug
After running the project, simply press Space to call Wreck().
-> The result of Zéro() changes to 100, and remains this way.
Observed Result
- The event 2 needs to be comparing Function.ReturnValue in order for the bug to happen.
- The function called by Wreck() doesn't need to exist, but there need to be at least two chained calls.
Affected Browsers
- Chrome: (YES)
- FireFox: (YES)
- Edge: (YES)
Operating System and Service Pack
Windows 10
Construct 2 Version ID
r233