playMaker

Author Topic: Device Orientation actions  (Read 3275 times)

Groo Gadgets

  • Beta Group
  • Full Member
  • *
  • Posts: 175
Device Orientation actions
« on: July 12, 2013, 09:53:04 PM »
Hey guys,

I'm trying to update my games camera and GUI when the device orientation changes. I'm using the Device Orientation Event action included with PlayMaker.

The problem i'm having is when set to every frame the action constantly returns the current orientation. What I need is an action that fires an event only when the orientation changes (see the attached screenshot).

So for example if my game starts in portrait orientation the action listens for a landscape orientation change and when detected fires off an action.

I don't think this functionality is possible with the default set of actions, any help on this dilemma would be greatly appreciated!

Cheers,

Simon

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Device Orientation actions
« Reply #1 on: July 15, 2013, 06:07:33 AM »

Groo Gadgets

  • Beta Group
  • Full Member
  • *
  • Posts: 175
Re: Device Orientation actions
« Reply #2 on: July 17, 2013, 10:31:22 PM »
Hey Jean,

This is EXACTLY what I was after! Thank you so much for creating this action for me!

I feel this is one of the many user created actions that should be included as an official action as default in PlayMaker builds. Are there any plans to add user created actions to future updates of PlayMaker?

Cheers,

Simon