ID:156195
![]() Dec 8 2010, 9:59 am
|
|
I'm trying to add Balance to my game, like a usr walking on a thin line. How to I make it so you tilt back and forth and you have to use the arrows to keep him balanced???
|
![]() Dec 8 2010, 3:21 pm
|
|
One way would be to have a proc run and stop your movements and change it to the arrow and have it randomly step west and east and you just press left or right to alter it???
|
Does anyone at all know anything of what I'm trying to do and how to do it??? O.o at least a lead on how I would doit
|
You could simply use Turn() on the usr's icon.
have a mob/var/balance = 0, and whenever the usr walks on a tight rope, have a proc that accelerates towards the usr's balance, var/balance = 0 You'd also want to use a bit of trigonometry to make the feet look fixed in place when Turn()ing usr.icon; that is, have your FEET as the 'visual' axis, instead of having your belly as the axis. It's 5:00am here, and I'm not going to calculate that for you at the moment. |