|
Adrian Sutter
Registered User
Join date: 9 Oct 2006
Posts: 4
|
01-05-2007 08:11
Hi all:
Just starting to program in SL and was thinking about creating a script for a tug of war game, but what I want to know is if more than one person can attach to an object. I don't what this to be an animation (like the arm or mud wrestling anims I've see). Rather, could just like a real tug of war... teams could be formed....if there were more on one side than another that would factor into the outcome. Of course this idea won't work if an object (the rope) can only be attached to one avatar.
TIA for any suggestions, ideas. Adrian
|
|
Adz Childs
Artificial Boy
Join date: 6 Apr 2006
Posts: 865
|
01-05-2007 08:23
only one avatar per object. make two objects and link them
I know of a store that specializes in paired poses. I"m not sure if i'm allowed to plug it but search for "Holding Hands"
this is a thing that you rez on the ground, and two people sit on it. One person's movement controls then control the object, which moves around both avatars. They are animated to appear to be holding hands as they walk. The other avatar's movement controls are ignored.
This is close to what you want... but you need to be able to capture both agent's movement controls, not just one. I'm not sure about that. But hopefully this information gives you a better start.
On edit: better search terms bring you to the place i'm thinking of.
|
|
Atashi Toshihiko
Frequently Befuddled
Join date: 7 Dec 2006
Posts: 1,423
|
01-05-2007 08:37
I would go about this as if you were making a vehicle. You would need to get or make a 'tug-of-war' animation, but create your rope out of a few prims (i.e. one for the middle, then one prim for each player). Put sit-targets in each rope prim where players are allowed, along with the tug-of-war animation, so when they 'sit' on their section of rope it animates them holding and ready to play. (the rope itself will probably have to hover at play-height and be 'rigid' rather than flex but it's a small concession I think.)
Script the prim rope's root prim with the vehicle actions and work out a method of deciding who 'wins'. My guess would be whomever presses their arrow keys the fastest? I don't know either how you would go about control, but if you look at the vehicle scripts where they intercept the controls of the avatar, that would be a good start. It might well be that you can let both (or all) 'seated' avatars control equally, then it really is a contest to see who presses their arrow keys fast enough, to move the rope one way or the other.
The project definately will be an excercise in animation and scripting but I think it would be very neat when finished.
-Atashi
|