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

#1 2011-09-04 10:27:07

prokohtu
Scratcher
Registered: 2008-06-19
Posts: 100+

Turn around a certain point

A cool feature to be added to Scratch that could help 3d projects: a block that sets the sprite center to a certain point.
Example:
Set center to(x;y)
turn 15 degrees
thus you could make 3d racing game!


Scratch's most realistic F1 simulator
https://lh6.googleusercontent.com/-qIdF-SzbTzw/UU29tK-FYvI/AAAAAAAAAOs/vRFKr1Iwldc/s225/logo.jpg

Offline

 

#2 2011-09-04 10:48:49

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Turn around a certain point

I think that the idea here is to be able to adjust the center of a sprite's costume with a block while the project is running? I think that would be rather useful in some cases - it would certainly reduce the need for trigonometry.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#3 2011-09-04 13:23:20

prokohtu
Scratcher
Registered: 2008-06-19
Posts: 100+

Re: Turn around a certain point

Harakou wrote:

I think that the idea here is to be able to adjust the center of a sprite's costume with a block while the project is running? I think that would be rather useful in some cases - it would certainly reduce the need for trigonometry.

Yes exactly


Scratch's most realistic F1 simulator
https://lh6.googleusercontent.com/-qIdF-SzbTzw/UU29tK-FYvI/AAAAAAAAAOs/vRFKr1Iwldc/s225/logo.jpg

Offline

 

#4 2011-09-04 19:19:56

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Turn around a certain point

Support!

Offline

 

#5 2011-09-04 20:04:08

Trekkie210
Scratcher
Registered: 2010-08-04
Posts: 500+

Re: Turn around a certain point

Isn't it already possible with Trig?


http://memberfiles.freewebs.com/84/02/38380284/photos/Ponies/131426738106.gif

Offline

 

#6 2011-09-04 20:19:45

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: Turn around a certain point

Trekkie210 wrote:

Isn't it already possible with Trig?

Some people don't know trig...

Offline

 

#7 2011-09-05 08:36:55

hello12345678910
Scratcher
Registered: 2009-07-11
Posts: 100+

Re: Turn around a certain point

Sorry to disappoint you, But this won't work. 
See, If you have a sprite with the center at the middle,
          [ . ]
And change it 5 to the left,
            .     [ . ]
This would make it rotate around the point, but would screw up the entire movement system. A better approach  would be to have a whole new block,

| rotate [ ] degrees around x: [ ] y: [ ] |


http://tinyurl.com/8yt32o9 http://tinyurl.com/6tgwp5r || Fish = F+I+S+H = 6+9+19+8 = 42<<The answer to Life, the Universe and Everything

Offline

 

#8 2011-09-05 09:25:44

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

Re: Turn around a certain point

I like hello12345678910's idea about the movement block.  smile  I agree the movement system would be terribly messed up.

It is already possible with trigonometry, but not everybody knows a whole lot about it, especially at the Scratch age.

Offline

 

#9 2011-09-05 12:17:07

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Turn around a certain point

hello12345678910 wrote:

Sorry to disappoint you, But this won't work. 
See, If you have a sprite with the center at the middle,
          [ . ]
And change it 5 to the left,
            .     [ . ]
This would make it rotate around the point, but would screw up the entire movement system. A better approach  would be to have a whole new block,

| rotate [ ] degrees around x: [ ] y: [ ] |

Ah, you do have a point. The sprite would seem to move as soon as you changed the costume center.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#10 2011-09-05 13:01:56

prokohtu
Scratcher
Registered: 2008-06-19
Posts: 100+

Re: Turn around a certain point

Harakou wrote:

hello12345678910 wrote:

Sorry to disappoint you, But this won't work. 
See, If you have a sprite with the center at the middle,
          [ . ]
And change it 5 to the left,
            .     [ . ]
This would make it rotate around the point, but would screw up the entire movement system. A better approach  would be to have a whole new block,

| rotate [ ] degrees around x: [ ] y: [ ] |

Ah, you do have a point. The sprite would seem to move as soon as you changed the costume center.

Yes, probably this is a better idea.


Scratch's most realistic F1 simulator
https://lh6.googleusercontent.com/-qIdF-SzbTzw/UU29tK-FYvI/AAAAAAAAAOs/vRFKr1Iwldc/s225/logo.jpg

Offline

 

Board footer