konterball's Recent Forum Activity

  • Ashley: Great! Thanks a lot :)

  • For example i would like to show ads and make sure that the game is paused and muted. Video ads together with the sound and/or background music of the game are not allowed.

    What would you suggest?

    It is possible to call SetTimescale(0) in my addon action? And i would need to mute the game as well.

    Maybe both is possible with CallAction functions?

    THANKS

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Found it out on my own:

    	...
    	inst.GetRuntime().SetSuspended(true);
    	// or:
    	c3_runtimeInterface._GetLocalRuntime().SetSuspended(true);
    

    Thanks for nothing :)

  • Hi there,

    I created an addon, but I cannot figure out how i do suspend a game.

    In C2 the easiest way was to call cr_setSuspended(boolean).

    In the instance.js i tried the following (doesn't seem to work):

    C3.Plugins.MyPlugin.Instance = class MyPlugin extends C3.SDKInstanceBase
    	{
    		constructor(inst, properties)
    		{
    			super(inst);
    			...
    			var self = this;
    			window.onPauseRequested = function(){
    				self.setSuspended(true);
    			};
    ...
    

    Is there a (global) function to handle it like it was possible before?

    Thanks in advance!

konterball's avatar

konterball

Member since 10 Jan, 2019

None one is following konterball yet!

Trophy Case

  • 5-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

7/44
How to earn trophies