Pause an actor dynamically

minu94

  • Posts: 46
Hi,

Is there a way to set the prop "Can be Paused?" to an actor after it's created?
Follow my game projects on facebook: https://www.facebook.com/Minu94Lab

JeffreyDriver

  • Posts: 2262
There isn't a block for it, but maybe it could be coded. Why do you want this? What exactly are you trying to do?

minu94

  • Posts: 46
Sometimes i check github page of Stencyl and I noticed this commit (attached).

The problem is that I used the trick of create actor after game is paused to manage modal buttons and stop any other actors.

At the moment I haven't any issue at all because the Stencyl app doesn't have that update.

I was wondering if there's a smart way to handle modals, for example:
1) disable every actor in a specific layer;
2)  assign dynamically an actor group after actor is created;
3) assign dynamically "Can be paused" prop;

I tried these solutions but can't work; probably I need to code this but I don't know how to do it at the moment.
Follow my game projects on facebook: https://www.facebook.com/Minu94Lab

Bombini

  • *
  • Posts: 1401
You can disbale and enable behaviours. Not sure if this helps but could useful for some fake "pausing".