Closed sotano42 closed 3 weeks ago
This is already supported in the latest releases via runtime.sdk.setSuspended()
.
@AshleyScirra thanks. Is there a way we could know when these features release? I'm constantly browsing the documents and releases log and never figured out this feature was moved to an SDK object.
Look at the changelog entries marked SDK.
Problem description
Property isSuspended from IRuntime can't be set to pause the execution. SetSuspended is an official feature from SDK v1 that must still be available.
Attach a .c3p
Project: test-pause.zip Addon: singleGlobalPlugin-zipped.zip
Steps to reproduce
Observed result
Construct can't be suspended from scripting. It's highly important that this feature works since the integration with 3rd party APIs sometimes requires you to react to DOM events and suspend the engine execution untill the 3rd party API sends a message to resume the game.
Expected result
IRuntime.isSuspended Property must be writtable.
More details
r406-2 Beta
System details
View details
Uncaught (in promise) TypeError: Cannot set property isSuspended of #