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

#1 2007-05-25 00:44:46

fandebiao
Scratcher
Registered: 2007-05-15
Posts: 25

set the center of effects

i'm just wondering if there's a way to set the center of a special effect such as the fisheye effect?

Offline

 

#2 2007-05-25 07:54:28

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: set the center of effects

As I understand it, the center of the effects is set to the geometric center of the bounding box for the sprite, independent of the rotation center.  You can hack the physical center a bit by adding tiny 1 pixel dots to change the bounding box.

I'd much rather have the rotation center be the center for all effects.
At least I can move that by copying the costume and moving the rotation center.

Offline

 

#3 2007-05-25 08:02:22

Roberth
Scratcher
Registered: 2007-05-15
Posts: 46

Re: set the center of effects

ditto Kevin's remarks here.  At least keep things consistent if changes are being made that allow an offset center, as have 2 "centers" for different aspects of a sprite just seems far too complex and a huge source of confusion.

Offline

 

#4 2007-05-26 00:24:24

fandebiao
Scratcher
Registered: 2007-05-15
Posts: 25

Re: set the center of effects

kevin_karplus, how do you "hack the physical center a bit by adding tiny 1 pixel dots to change the bounding box"? More costumes?

Offline

 

#5 2007-05-26 01:13:40

mungojelly
Scratcher
Registered: 2007-05-19
Posts: 35

Re: set the center of effects

What he's saying is put a dot off in space next to the picture, which changes the boundary box & therefore where the center is.  You could have a costume with a dot off to the left & it would move the center to the left, and then have a costume with a dot off to the right and it would move the center to the right.  Right?  I haven't tried it myself.

<3

Offline

 

#6 2007-05-26 10:23:24

millner
Scratcher
Registered: 2007-03-13
Posts: 25

Re: set the center of effects

Mungojelly:

You (and kevin_karplus) are correct.

Offline

 

#7 2007-05-30 08:20:05

mres
Scratch Team
Registered: 2007-03-08
Posts: 48

Re: set the center of effects

At one point, we considered giving users control over the "center" for special effects, but we decided that would add too much complexity. (When in doubt, we generally decided in favor of simplicity and understandability over enhanced functionality.)

We also considered making the "centers" for rotation and special effects the same, but decided not to do it on this version, thinking it might be more confusing for beginners. But I'm not sure that was the right decision. We re-evaluate for the next version.

Mitch Resnick (for the MIT Scratch Team)

Offline

 

Board footer