Pages: 1
Topic closed
Hey there, I am in the going of making a few Sailing minigames, and it is going very well.
EXCEPT: I would like my automated boat to round a mark, 180' to head back to the finish, and I do not know how to do so... The idea is to have it round close to the mark when you are further away from the mark as it is, and for it to round further from the mark if you are in between it, and the mark itself.... you following?
Is there any chance that I could have some help here, maybe using some pi would help, I just can't get my head around what should be done for code...
thanks
If you want to see what the project I am talking about may look like, feel free to take a look at my other sailing game, Speed trials HD.
Offline
No, I should know it, but I do not.
Is there any chance that a script could be explained to me, or is that too much?
thanks
Offline
I can't script one as I don't understand how you want it to be done.
Offline
OK, I would like an object (boat) to do a semi-circle perimeter around a fixed mark. but, I want the path it takes to change length around the mark based on how far it is away from the mark when it is complementary to that point. The idea is to have a line, in which when it has contact with the object, it sends a signal. Somehow I'll measure the Y distance from the object to the mark, and then keep that the same as it travels around the mark, until it has made a supplementary turn. You get what I mean?
All I need is a way to measure the Y distance from two objects, and how to keep that the same while the object circles around the mark.
I hope that explains it, if not I'll try this another time
thanks
Offline
I understand what you mean.
I believe this is what you want:
Move the Black Dot, and click the greenflag.
http://scratch.mit.edu/projects/fg123_tests/2635701
Offline
That is exactly it!!!
Thanks!
Offline
Topic closed
Pages: 1