Problem Description
When calling a function with a parameter set, using a wait inside the function clears it's parameters.
Is this normal?
Attach a Capx
http://aff-gamer.com/waitParam.capx
Description of Capx
This demonstrates that a parameter zeros after a system wait.
Steps to Reproduce Bug
- new project with 1 global variable, 1 button, 2 text boxes and functions object
- global variable should equal any number other than 0
- on start set text.text to global variable
- on button clicked call function with param(0) set to global variable
- on function {
- - set text2.text to function.param(0)
- - wait 1.0 seconds
- - append text2.text with function.param(0)
Observed Result
After a system wait, function param always returns 0.
Expected Result
I didn't expect to loose my parameter after a system wait.
Affected Browsers
- Chrome: (YES)
- FireFox: (unsure)
- Internet Explorer: (YES)
Operating System and Service Pack
Windows 10
Construct 2 Version ID
227 64bit
personal licence