Pausing

Jon

  • *
  • Posts: 17524

Attached is a game demonstrating pausing. You need the latest drop of StencylWorks 1.2 to take advantage of it.


« Last Edit: October 16, 2011, 05:33:13 pm by Jon »

Derek

  • Posts: 163
Quick question, is there going to be a way to disable that darkening effect of the pause function?
Don't be a critic on the internet while eating and drinking at your computer.

Jon

  • *
  • Posts: 17524
It's part of the demo and isn't part of the pausing functionality in particular.

Luyren

  • *
  • Posts: 2807
So this is basically a "flixel pause" where you can opt out actors of it?

The scenario I want is: my actor handles menu operations (in a RPG). What if I want to pause his actions and behaviors, but want to still use its menu behaviors and perform logic to him (like setting attributes)?
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

Jon

  • *
  • Posts: 17524
This has nothing at all to do with Flixel pause. It's a completely separate (and platform independent) implementation.

You can message paused actors like normal - the only thing that's paused about the actor is its physics and the call to when updated.

Luyren

  • *
  • Posts: 2807
This has nothing at all to do with Flixel pause. It's a completely separate (and platform independent) implementation.

You can message paused actors like normal - the only thing that's paused about the actor is its physics and the call to when updated.

Sorry about that, I thought that it was something like the flixel pause, but with the opt-out thing.

Nice to know about this new update! Thanks a ton!
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.

VeGaS

  • Posts: 14
Nice function, thanks :)

Darkhog

  • Posts: 1243
As I understand, old Flixel pausing is ditched, right? Then how to emulate old behavior where when player clicks outside game window the game is automatically paused?

There are no impossible things. There is only lack of skills.
Don't click this if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers :D

Jon-iPad

  • *
  • Posts: 166
It's not ditched. You can turn it back on using a block.

KungFuFurby

  • *
  • Posts: 487
Oh, I have an excellent idea on how to use that! I could use that as a way to select an item, kinda like a menu when the game is paused. That'll save me some room.

And this would go great with Swim and Mind Snap...
Hi, all! I'm KungFuFurby, music composer. If you're looking for some music for your game, just PM me.
My Works List for Non-Stencyl Games
My Works List for Stencyl Games


SuperJosh64

  • Posts: 42
Oh, I have an excellent idea on how to use that! I could use that as a way to select an item, kinda like a menu when the game is paused. That'll save me some room.

And this would go great with Swim and Mind Snap...
Indeed it would ;)

Great news Jon! Can't wait to dive deep into the latest updates once my exams are over!

mikbob

  • Posts: 493
It's not ditched. You can turn it back on using a block.
Which block?

Visit Our Site!  http://www.mikbobgames.com
Play The Platforms 2!  http://bit.ly/theplatforms2
Check out our twitter!  www.twitter.com/mikbobgames

Miasmos Games

  • Posts: 878
Should be under Flow>Advanced>Controls in design mode.

And to an Admin, is there any way to use this new pause with the user pressing outside the screen? Don't want to use Flixel but pausing when the game loses focus would be useful.

Cupcake Bounce

Sunflower

  • Posts: 591
I must agree, this pausing option makes things much easier to control.

Just about Miasmos' suggestion: maybe not only *pausing* when losing focus, but I think it would be good to have block for checking if focus was lost at all. ^^'