How can I get a Bucket to stay at the end of a line? Like when you put the handle of a bucket on the end of a large stick, and it stays there, maybe swaying a little (if possible).

Offline
And as the stick goes down, it stays there. I can't think of anything that would do this, and i know it involves Trigonometry

Offline
And this is why I don't like the nighttime- I can't get any Trig help cause people are sleeping

Offline
confusing...........hmmmmmmmmmmmmmm
i do not know
Offline
Just wait till tomorrow…

Offline
put the rotation centre to the edge of the bucket then put this script in
<when green flag clicked>
<forever>
<go to[ stick
<point in direction( however much
<set x to( (( sin ( <direction> <*> however much ))
<set y to( (( cos ( <direction> <*> however much ))
<end>
Last edited by deatheater (2008-07-21 01:45:21)
Offline
deatheater wrote:
put the rotation centre to the edge of the bucket then put this script in
<when green flag clicked>
<forever>
<go to[ stick
<point in direction( however much
<set x to( (( sin ( <direction> <*> however much ))
<set y to( (( cos ( <direction> <*> however much ))
<end>
![]()
Nope. It just lays on the ground

Offline
no wait change the
set x and set y to change
Offline
deatheater wrote:
no wait change the
set x and set y to change![]()
It moves now, but doesn't give the desired effect of the bucket on a stick

Offline
<point in direction( direction of stick
<turn cw( <{ turn amount }> )degrees>
put that instead of the point in direction
Offline
deatheater wrote:
<point in direction( direction of stick
<turn cw( <{ turn amount }> )degrees>
put that instead of the point in direction![]()
I'll try to incorporate this

Offline
See, the problem is the rotation center isn't actually centered. It's at the bottom of the "stick", so that's where the "bucket" goes, not the top

Offline
yes thats the fact of change x and y, put tht * on the end up more to test
Offline
deatheater wrote:
yes thats the fact of change x and y, put tht * on the end up more to test
![]()
What? IF you're saying multiply, I tried from 1-100and it didn't work

Offline
deatheater wrote:
it didn't move?
It moved, but I didn't get the desired effect. If only you could tell how long a sprite was, you could just add that to it

Offline
upload it and I'll see it
Offline
deatheater wrote:
upload it and I'll see it
![]()
I didn't really want to because A: Has no storyline, no objective, and B: I wanna kind of keep it secret. Think you can make a quick demo?

Offline
deatheater wrote:
I'll try
Thanks. Just like a bucket on a stick. In the meantime, I'll try too

Offline
Think I got it (using that, but now the length of the stick is konwn and used)

Offline
Yup. Works now. Of course, using what you said

Offline
I just thought of another method
, <move( however many steps )steps>
instead of change x and y
Offline
deatheater wrote:
I just thought of another method
, <move( however many steps )steps>
instead of change x and y![]()
But this way is working. Now to add a cable and direction, and than make an objective and purpose

Offline
by the way with the thing on the greek document was that all true
Offline