Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Separating controls from 2 objects in MMF2
United Kingdom
Gamesmonkey
Posted: May 31 2008, 02:06 PM
Quote Post


More badass than anything else ever
[*][*]

Group Icon
Group: Members
Posts: 1499
Member No.: 3336
Joined: 21-February 07

Status: (0d) [--]


So, if I have two objects that have the same controls, how can I create different controls for player 2's object?
Oh, and if it helps i'm using global values.


--------------------
user posted imageuser posted image
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
Unspecified
Miaxis
Posted: May 31 2008, 02:38 PM
Quote Post


hagan bromas
[*]

Group Icon
Group: Members
Posts: 1799
Member No.: 2793
Joined: 12-October 06

Status: (0d) [--]


I think I told you on PM already?If not,just change them in your application´s Properties in the workspace toolbar.
Properties>Runtime options>Default controls>Click on player 2´s keyboard and click on the key´s button,press the key and repeat it with the others.


--------------------
user posted image

user posted imageuser posted imageuser posted imageuser posted image
PMEmail PosterUsers WebsiteMSN
Top
United Kingdom
Gamesmonkey
Posted: May 31 2008, 03:08 PM
Quote Post


More badass than anything else ever
[*][*]

Group Icon
Group: Members
Posts: 1499
Member No.: 3336
Joined: 21-February 07

Status: (0d) [--]


Still doesn't work. It needs to work with global values as well.


--------------------
user posted imageuser posted image
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
Unspecified
Draco Icebane
Posted: May 31 2008, 03:36 PM
Quote Post


Standard Member
[*][*][*][*][*]


Group Icon
Group: Banned
Posts: 52997
Member No.: 10
Joined: 13-October 03

Status: (71582612m) [XX]


... what are you using global values for?

If these are difference instances of *the same* object, then you'll be having a lot of fun with this and you will need to be using custom movement. Here's my idea:


Idea 1

Develop the object in one-player, then clone the object (with a separate list entry) and change the new one to two-player. This is inefficient, but not very difficult to do.



Idea 2

Set one of the global variables' names to "player_control" or some variant thereof. At the start of the game, spread value 0 into this variable for this object. This will set the first object to value 0, and every object thereafter to value 1, 2, 3, etc which will let you tell which player is which.

If your object can tell which player is controlling it, then logically you should be able to code different input / response for each player. I haven't found a reliable method for MMF2 for variable player input that isn't LUA, so you'd have to code all of the input manually. (My MMF2 refuses to patch, btw.)
PM
Top
United States
Xgoff
Posted: May 31 2008, 05:13 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


QUOTE (Draco Icebane @ May 31 2008, 02:36 PM)
I haven't found a reliable method for MMF2 for variable player input that isn't LUA, so you'd have to code all of the input manually.

have you even used lua yet

also you might want to look into using controlx


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0517 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.99 ]