User Tag List

Results 1 to 2 of 2

Thread: [OUYA HELP]Set Active position by Right Stick

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    paobrasil's Avatar
    Join Date
    Apr 2012
    Location
    Rio de Janeiro, Brazil
    Posts
    1,149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool [OUYA HELP]Set Active position by Right Stick

    Hello again my friends!

    I'm trying to figure this engine on OUYA:

    Upon presses "spacebar": CREATE ACTIVE and set X position to X Right Frame/2 and Y position to Y Bottom Frame/2 (CENTER OF THE SCREEN)
    Aways: Set X position of ACTIVE on X Mouse / Set Y position of ACTIVE on Y Mouse

    Well...as you can see, I use some keyboard button to create active, then position always on mouse position.

    ================================================== ================================================

    I'm trying to do this on OUYA controller......create a object on center of screen when I press R1.....then aways set position relative of RIGHT STICK....I want to use Right stick to move this ACTIVE (if I move the right stick a little bit, the active will move slow.....if I move right stick too much...the active will move fast..... (like a mouse pointer moved by stick)

    i've tried to do this get the values of right stick...put on alterable value...then set on active position. But I cant figure this....and I dont have a OUYA to test anytime.... (just sometimes because its of my friend)..

    So....can someone here make a simple MFA example of this and save my life?

    Best regards and thank you very much!

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,561
    Mentioned
    257 Post(s)
    Tagged
    4 Thread(s)
    right stick is only available by using OUYA object and the result is a float value for x_axis and y_axis in the range of -1 to 1

    https://dl.dropboxusercontent.com/u/...Controller.mfa
    Regards,


    Fernando Vivolo

    ... new things are coming ...

Similar Threads

  1. OUYA Analog right Stick
    By Droggelbecher in forum Android Export Module 2.5
    Replies: 1
    Last Post: 16th May 2014, 06:07 PM
  2. OUYA stick reverse axis xy?
    By Matriax in forum Android Export Module Version 2.0
    Replies: 9
    Last Post: 10th November 2013, 09:23 PM
  3. Ouya analogue stick example?
    By DedHedZed in forum Android Export Module Version 2.0
    Replies: 5
    Last Post: 14th July 2013, 11:13 AM
  4. OUYA Analog stick suport?
    By Mystemo in forum Android Export Module Version 2.0
    Replies: 5
    Last Post: 2nd July 2013, 11:56 PM
  5. Position the virtual stick
    By Nellatermica in forum Android Export Module Version 2.0
    Replies: 3
    Last Post: 12th May 2013, 08:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •