playMaker

Author Topic: Setting Up A Resolution Checker FSM  (Read 2387 times)

mweyna

  • Full Member
  • ***
  • Posts: 242
Setting Up A Resolution Checker FSM
« 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?

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: Setting Up A Resolution Checker FSM
« Reply #1 on: May 27, 2014, 04:44:52 PM »
Do you still get those numbers returned when using the Screen Height and Screen Width actions?

mweyna

  • Full Member
  • ***
  • Posts: 242
Re: Setting Up A Resolution Checker FSM
« Reply #2 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.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Setting Up A Resolution Checker FSM
« Reply #3 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...

mweyna

  • Full Member
  • ***
  • Posts: 242