Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: mweyna on May 27, 2014, 04:06:34 PM

Title: Setting Up A Resolution Checker FSM
Post by: mweyna on May 27, 2014, 04:06:34 PM
So I'm trying to build an FSM where it will detect the current resolution (using the resolution playmaker actions) and then go to an appropriate state so I can set proper positions of UI objects. However, no matter what I do, it seems to have fixated on a screen resolution of 1920x1200. Even if I change my desktop resolution to lower (say 1024x768), it always returns that number. Even tweaking my Game Resolution value has no impact, and it still pulls 1920x1200. Where exactly does the "Get Resolution" action pull that from and what is the best way to set up a test case for multiple resolution values?
Title: Re: Setting Up A Resolution Checker FSM
Post by: jess84 on May 27, 2014, 04:44:52 PM
Do you still get those numbers returned when using the Screen Height and Screen Width actions?
Title: Re: Setting Up A Resolution Checker FSM
Post by: mweyna on May 28, 2014, 03:44:17 PM
Nope, looks like that way works. I'm still confused why the other action returns different values, but with your help I have my workaround.
Title: Re: Setting Up A Resolution Checker FSM
Post by: Alex Chouls on May 28, 2014, 07:42:14 PM
Is "Get Resolution" a custom action? I don't see it in the base install...

If you post the action I can take a look at it...
Title: Re: Setting Up A Resolution Checker FSM
Post by: mweyna on May 29, 2014, 01:20:55 AM
Originally found here -
http://hutonggames.com/playmakerforum/index.php?topic=2968.msg13577#msg13577