The Daily Click ::. Forums ::. Klik Coding Help ::. Need help with analog sticks for multiplayer OUYA game using MMF2
 

Post Reply  Post Oekaki 
 

Posted By Message

mystemo



Registered
  04/07/2013 23:10:17
Points
  30
4th July, 2013 at 04/07/2013 23:20:55 -

Hi!
I'm working on a game project for OUYA using the Android Exporter on Multimedia Fusion 2 and now I've run into a bit of a problem.

I want to use the analog sticks on both OUYA controler 1 and 2. I know I'm suposed to use the "Get axis value (Player number)" option and this gives me the code "LeftStickXForPlayer( "OUYA object", , )" but I can't figure out where and how to put the player number into the code. The only hint the help file tells me is "Parameters: Player number (where the first player is 0, the second is 1, etc.)"

If someone could help me with this I would appreciate it immensely. Thank's in advance.

 
Don't fake the funk on a nasty dunk

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
5th July, 2013 at 05/07/2013 04:36:16 -

I think you can do it if you compare two values.

'Get player number' = '1' for instance.

and again for the analog stick control.

Edited by AndyUK

 
.

mystemo



Registered
  04/07/2013 23:10:17
Points
  30
5th July, 2013 at 05/07/2013 17:46:18 -

Thanks, that almost worked but I still get a bit of trouble. The left stick works fine with this method but when I try to use the right stick it only works for the last player who moved his left stick/used a button. So if player 1 for instance is using the left stick or pushing a button player 2 can't use the right stick.

Edited by mystemo

 
Don't fake the funk on a nasty dunk
   

Post Reply



 



Advertisement

Worth A Click