The Daily Click ::. Forums ::. Klik Coding Help ::. I need help with this controller config mfa
 

Post Reply  Post Oekaki 
 

Posted By Message

JetpackLover



Registered
  01/03/2007
Points
  212
1st December, 2008 at 22:15:22 -

My friend made this controller config mfa for me but I don't completely understand it.

I'm trying to get it so when you change button controls instead of using something like "Joy 1" it will instead use something like "A button" I'm trying to make my game compatible with 360 controls and I figure it would be easier to change your controls if you knew exactly which button went where. For example say you want to change controls for Jump. Instead of seeing something arbitrary like Jump = "joy 2" it will say Jump = "B button"

You would really have to take a look at the actual mfa to understand what I'm saying.

I put a link for the MFA, and other data files below. (I couldn't figure out how to attach a file)

http://www.megaupload.com/?d=8YXONSMV

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


Fifth

Quadruped

Registered
  07/05/2003
Points
  5815

VIP MemberGOTW JULY 2010 WINNER!Kliktober Special Award TagGOTW HALLOWEEN 2011 WINNERPicture Me This Round 51 Winner!
1st December, 2008 at 22:55:07 -

Why, this config program looks awfully familiar...

I think the easiest way to do what you're asking is to associate each joystick button value with a pre-defined name, and the easiest way to do that would be with a list object.

Make a list. Put it off to the side, out of the frame, hide it, and give it 1-based index (which is probably a better choice in this case).
Each entry to the list will correspond to one of the buttons. Joy 1 will be the first line, Joy 2 the second, etc. You'll have to find out yourself what all of these buttons mean (A button, B button, etc.) and write them into the corresponding list slots.

When you've done that, you replace the events on line 5 of your program (the ones that aren't the four directions, anyway) to refer to the list values.
Thus something like this
"Joy "+GroupItemString$( "Ini", Combo Select$( "Combo Box" ), "5")
Becomes something like this.
List Line Text$( "List", GroupItemValue( "Ini", Combo Select$( "Combo Box" ), "5"))

...Which (assumeing I getting this right) should use the button's equivalent name from the list value instead of a plain ol' button number.

 
Go Moon!

JetpackLover



Registered
  01/03/2007
Points
  212
2nd December, 2008 at 00:14:20 -

That worked fantastically, thanks ol' boy!

Oh and about the config looking familiar, my friend did make it to work with my game but he didn't invent it. I should've mentioned that. Btw do you know who made it so I can give them credit if I ever finish my game?

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


Fifth

Quadruped

Registered
  07/05/2003
Points
  5815

VIP MemberGOTW JULY 2010 WINNER!Kliktober Special Award TagGOTW HALLOWEEN 2011 WINNERPicture Me This Round 51 Winner!
2nd December, 2008 at 06:01:44 -

Heh, the original's right here:
http://www.create-games.com/article.asp?id=1677

 
Go Moon!

JetpackLover



Registered
  01/03/2007
Points
  212
2nd December, 2008 at 19:11:04 -

Thank you for the link Fifth, oh and thanks for making the customizable controls too!! If I ever finish I'll credit you Oh and I also rated your article "5 stars"

Edited by JetpackLover

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


alastair john jack

BANNED

Registered
  01/10/2004
Points
  294

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!VIP MemberMushroomI am an April Fool
1st December, 2009 at 11:08:05 -

The file link in your article Fifth does not work anymore at all ever.

 
lol
   

Post Reply



 



Advertisement

Worth A Click