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

#1 2008-02-02 11:51:27

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Rotation handles

Does anyone know if there is a scratch project tfrom which I can borrow that shows handles on a sprite so that the user can rotate the sprite? Or whatever similar to reach the same goal? ? Thanks in advance for any help.

Offline

 

#2 2008-02-02 12:02:15

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: Rotation handles

Hmm... shouldn't be too hard.  Simply "when clicked, point towards mousepointer".

Or, if you want only the handle to cause rotation, make it a seperate small sprite that follows the mouse when clicked but always remains within (X) of the main sprite.  Meanwhile the main sprite would simply have to have "point towards" the other sprite.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#3 2008-02-04 11:24:45

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Re: Rotation handles

I guess this is exactly what I need but... your pseudo-code doesn't mean much to me :} sorry, I'm very new at scratch. I'm pretty good at modyfying someone else's code, but I'm far from creating my own starting from... scratch. Would you mind attaching some code or posting a few links to relevant projects?

Thanks a lot for your help  smile

Offline

 

#4 2008-02-04 11:44:20

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Re: Rotation handles

By looking into the forums for "when clicked, point towards mousepointer" I found this post http://scratch.mit.edu/forums/viewtopic.php?id=2427. I guess it could do the job...

Offline

 

#5 2008-02-04 14:44:14

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: Rotation handles

Try this http://scratch.mit.edu/projects/Mayhem/93144


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

Board footer