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

#1 2010-06-23 15:49:44

Flashkirby
Scratcher
Registered: 2007-08-04
Posts: 3

A new rotation block idea.

It's just a suggestion, but I wonder, if there could be a motion block that let's an object, rather than point towards another object, rotate towards that object much like a mixture of the the "Turn" and "Point Towards", for a smoother rotation. I know that there are ways around this, but it would seem easier and more practical to have something like that. http://tinyurl.com/scratchblockidea

Last edited by Flashkirby (2010-06-23 15:59:08)

Offline

 

#2 2010-06-23 16:08:48

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: A new rotation block idea.

Hm... Not sure what that block would do. You mean it would turn 15 degrees in the direction of the player? Why can't you just change the direction based on the direction of the player manually?

Offline

 

#3 2010-06-23 17:57:27

TimeFreeze
Scratcher
Registered: 2008-08-11
Posts: 500+

Re: A new rotation block idea.

That's really easy, I can tell you how to do it, but it would require a variable. Not sure what you would use it for though...


There are 10 types of people in this world: Those who understand binary, and those who don't. --[insert unrelated transition]-- GRANDILOQUENCE FTW!

Offline

 

#4 2010-06-29 00:12:16

jackrulez
Scratcher
Registered: 2009-08-01
Posts: 1000+

Re: A new rotation block idea.

Workaround:

|if <({direction v} of {Player1 v}) < (direction)>]
| |[turn <- (15) degrees]
|else   ]
| |[turn -> (15) degrees]
| _________________________________________]


Yawn, another boring text signature. I should really make something better.

Offline

 

Board footer