playMaker

Author Topic: device roll limit angle [SOLVED]  (Read 915 times)

merde10

  • Playmaker Newbie
  • *
  • Posts: 46
  • new user of playmaker :)
    • View Profile
device roll limit angle [SOLVED]
« on: September 23, 2015, 09:52:50 AM »
Hello Guys,

My little cousins had a cow box (a box when you turn, a sound of a cow is playing). But it was broken.

And i was thinking about create an app of cow box for them (it can be a good practice for me).

So i began to start my project but i have an issue about rolling the cow box.

When i use unity remote on my android device, the cow box roll when my device is turn. But i want him to play a sound when the cow box reached a angle value (like 180°).

The problem is that i am stuck in the state "device roll", and it doesn't continue to the next state.

How can i fix that?

Thanks ;)
« Last Edit: September 24, 2015, 08:16:44 AM by merde10 »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14692
  • Official Playmaker Support
    • View Profile
Re: device roll limit angle
« Reply #1 on: September 23, 2015, 11:03:04 PM »
Hi,

 simply don't :) use the orientation, you'll get discrete events and it's 1 minute to implement :)

use Device Orientation watcher on the Ecosystem for this.


 Bye,

 Jean

merde10

  • Playmaker Newbie
  • *
  • Posts: 46
  • new user of playmaker :)
    • View Profile
Re: device roll limit angle [SOLVED]
« Reply #2 on: September 24, 2015, 08:16:27 AM »
Thanks,

it works fine! ;)