Losing focus problem

Ganu

  • Posts: 224
Hi I`m creating a game where you have to click and drag your mouse to shot the actor, the problem is it often needs you to drag mouse outside of game screen and then game loses focus and you cant shoot with desired force...
Currently waiting for joints in stencylworks.

Hectate

  • *
  • Posts: 4645
Sorry, that is a limitation of Flash. Nothing we can do about it.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

Ganu

  • Posts: 224
Oh damn, I`ll have to redo the functionality...
Currently waiting for joints in stencylworks.

Innes

  • *
  • Posts: 1961
You could create some custom code to detect when the game loses the focus and, when that happens, you could pause the game and display a message until the game gains focus again.

There's a discussion and some sample code at the link below:

community.stencyl.com/index.php/topic,11839.msg71351.html#msg71351
Visit www.TheStencylBook.com - the only published book for learning Stencyl.