[quote="Evil_Toaster":2lq6qx2h][quote="newt":2lq6qx2h]Why don't you just use the rotation behavior on a sprite? That's all your doing isn't it, rotating it one direction or the other?[/quote:2lq6qx2h]
Not exactly, because that would make it rotate at the center, so it would have both ends moving at the same time. I need both ends of the stick to be in control.
Imagine playing this with a Playstation controller. You have two analog sticks. One analog stick controls the left end of the stick, and the other controls the right. If I move the left stick in a direction, the left end of the stick goes that direction, but the other end of the stick has to stay still.
It's not like - / | \ - kind of movement. It's more like _\|/_. If that helps at all.
Maybe another visual example. Look at this game http://www.youtube.com/watch?v=A3cT_DJQj1I
He's controlling two boats with a line in between, the only difference between that and the thing I need is the line between needs to be the same length at all times. So the two 'boats' are at the same distance away from eachother all the time. (cool game btw)
If you want a physical example, take a staff or something and hold both ends. And just move it with one hand at a time. Move your left hand up, but your right hand still. And then the other way around. I don't know a better way to explain it than that.[/quote:2lq6qx2h]
Well I can't help with how to do it, only that I'm pretty sure it's possible using events. Say for example you use the xbox controller object. That gives access to all the buttons/directions. So then if you were to use events to control what moves what and where, rather than properties, it'll solve the problem with controlling things independently.
Then I think it's simply a case of setting up an event which checks the distance between the two ends of the pole and preventing them from moving further apart or getting closer together. Which should be doable. As for changing the pivot point, erm.. maybe some event that if X moves, then play pivot on Y's position, and viceversa, could that work? Hmm, it's difficult to explain isn't it? lol. I DO know what you're after, I just can't word it right.