This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-06-25 20:11:28

CHOMPYCHEESE
Scratcher
Registered: 2012-06-11
Posts: 9

there a way to make a perfect half circle, around a point?

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

 

#2 2012-06-25 20:41:01

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: there a way to make a perfect half circle, around a point?

You need to use trig. Do you understand trig?


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#3 2012-06-25 21:12:00

CHOMPYCHEESE
Scratcher
Registered: 2012-06-11
Posts: 9

Re: there a way to make a perfect half circle, around a point?

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

 

#4 2012-06-25 21:16:11

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: there a way to make a perfect half circle, around a point?

I can't script one as I don't understand how you want it to be done.


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#5 2012-06-25 21:32:41

CHOMPYCHEESE
Scratcher
Registered: 2012-06-11
Posts: 9

Re: there a way to make a perfect half circle, around a point?

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

 

#6 2012-06-25 22:16:40

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: there a way to make a perfect half circle, around a point?

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


Hai.

Offline

 

#7 2012-06-25 22:25:03

CHOMPYCHEESE
Scratcher
Registered: 2012-06-11
Posts: 9

Re: there a way to make a perfect half circle, around a point?

That is exactly it!!!
Thanks!

Offline

 

#8 2012-06-25 22:56:57

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: there a way to make a perfect half circle, around a point?

You're welcome. Welcome to Scratch, have fun, and of course,

Scratch On!


Hai.

Offline

 

Board footer