playMaker

Author Topic: Screen Widht, height.  (Read 1737 times)

Kothe

  • Junior Playmaker
  • **
  • Posts: 71
Screen Widht, height.
« on: April 18, 2014, 12:21:27 PM »
Hi.

 I´m just trying to get the screen width and height with that simples actions
and store them in variables. But when I play, the state is able, but the actions
don´t work, they turn off.

 What´s is going on ?

THX

parallel

  • Full Member
  • ***
  • Posts: 155
Re: Screen Widht, height.
« Reply #1 on: April 18, 2014, 12:28:10 PM »
As I recall they only play once (not every frame) so you need to refresh the state, like with a 'wait' or 'next frame' (so you don't get loop exceeds x) and then with a finish event to loop back in.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Screen Widht, height.
« Reply #2 on: April 21, 2014, 08:34:34 AM »
Hi,

 yeah, they only run once unfortunatly. Refresh every seconds or so I would say. I guess it would be good that we get a global event fired when the screen size changes to be more effective.

I'll work on a custom system for this.


Bye,

 Jean