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

#1 2010-10-29 06:17:12

subzerostig
Scratcher
Registered: 2010-09-08
Posts: 100+

How do you turn x/y into direction?

I've been working on a project which involves the usual set of x/y physics. However for some sections of it, I need to point it at the direction it should be going. I have tried to figure it out but I can't think of anything. I am sure it is possible and does anyyone know how to do this (if it is possible)
Thanks


There are 10 types of people people in this world, those that understand binary and those that do not: My latest Project: Present catcher V2                          06/12/2012

Offline

 

#2 2010-10-29 10:49:25

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: How do you turn x/y into direction?

I'll post it as a BYOB block, but you can probably turn it into normal scratch yourself.


/* No comment */

Offline

 

#3 2010-10-30 07:13:09

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: How do you turn x/y into direction?

This project shows you one method
http://scratch.mit.edu/projects/Paddle2SeeFixIt/838267


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2010-10-30 08:26:17

what-the
Scratcher
Registered: 2009-10-04
Posts: 1000+

Re: How do you turn x/y into direction?

You might want to look at this. It has is a simple script which converts coordinates into a direction that scratch can interpret.
http://scratch.mit.edu/projects/what-the/1178312


http://imageshack.us/m/64/9034/ddfss.pngMy site
Find someone post count. Click posts under username. Find number of pages. Times that by 40 for min and 60 for max and you have a rough estimate of post count.

Offline

 

Board footer