Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Can anyone help me with a swing script?

Furry Fizgig
Registered User
Join date: 3 Jun 2008
Posts: 29
06-28-2008 20:15
Hello,
I was trying to make a swing (just learning how to build) And really wanted to surprise my friend with it.
I bought 2 different kinds of swing scripts, but i dont understand how to make this work. Is anyone inworld who can help or guide me through this....I am at my wits end. I am willing to pay for your time of course.
Thanks
Dekka Raymaker
thinking very hard
Join date: 4 Feb 2007
Posts: 3,898
06-29-2008 17:05
I could help you, I am in world often, usually, however not tomorrow. But I'll try to contact you when I am on.
_____________________
Dekka Raymaker
thinking very hard
Join date: 4 Feb 2007
Posts: 3,898
06-29-2008 17:07
one thing that might be bugging you, is that the prims rocks rather then swings, if that is your problem, just rotate the prim by 180 degrees. :)
_____________________
Cheree Bury
ChereeMotion Owner
Join date: 6 Jun 2007
Posts: 666
06-30-2008 05:17
Also keep in mind that it will rotate (rock or swing) around the root prim. Make a cylinder for an axle and make it the root (even if you have to make the cylinder totally clear.) Put your swing script in that root cylinder.

Also, if your swing has a base, do not link the swing portion to the base. Otherwise, the base will move with the swing.

This question comes up a lot, so there are classes for this most every week somewhere. Do a Search for Education under the Events tab. You should be able to find one. They even include free scripts.
Kermit Rutkowski
Registered User
Join date: 5 Feb 2008
Posts: 8
07-02-2008 07:57
From: Cheree Bury
Also, if your swing has a base, do not link the swing portion to the base. Otherwise, the base will move with the swing.



Yes, I was just going to ask about the base or support frame on a swing. Is there a way to script the base/frame so that it will not move and only the swing chair moves?
Cheree Bury
ChereeMotion Owner
Join date: 6 Jun 2007
Posts: 666
07-02-2008 10:31
From: Kermit Rutkowski
Yes, I was just going to ask about the base or support frame on a swing. Is there a way to script the base/frame so that it will not move and only the swing chair moves?


No. Since SL doesn't have hierarchical objects, you will have to have two separate objects -- the swing and the base(or frame.)

One of the difficulties is when you want to move the swing, you have to move the frame and the swing together (without linking them.)

I have seen different schemes to handle this including writing follower scripts where you move the base and the swing follows along a second or two later and positions itself. Other people like to rez a new swing after the frame is moved and delete the old one. There is no one best way to handle the problems (that I'm aware of -- I would love it someone would correct me.)