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

#1 2012-01-08 21:40:42

tguile
New Scratcher
Registered: 2012-01-02
Posts: 10

How to make a sprite move from end and not center

I am new to scratch and am trying to make a game. I have a tank that is suppose to
shoot antiaircraft shells. I have the tank as one stationary sprite and the barrel as a sprite that I want to point towards the mouse. It is pointing towards the mouse but
is rotating on the center. That is pulling it from the tank body. I need it to rotate
from the end that is connected to the tank. How do I do that and can you include the code? Thanks.

Offline

 

#2 2012-01-08 21:50:24

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: How to make a sprite move from end and not center

There is no "code" really.  Go to the barrel's "costumes", click "edit", and click "set costume center".  That is the point it will rotate around.  You can just drag it to the end of the barrel.  Easy as pie  smile


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#3 2012-01-08 22:20:02

tguile
New Scratcher
Registered: 2012-01-02
Posts: 10

Re: How to make a sprite move from end and not center

Thank you. That worked.

Offline

 

#4 2012-01-09 17:47:47

CatPerson
Scratcher
Registered: 2011-12-17
Posts: 1000+

Re: How to make a sprite move from end and not center

what MoreGamesNow said.
           Love,
              CatPerson  /\_/\
                              I ' . ' I CatPerson LOVES cats...LOL B3


http://nyopoliticker.files.wordpress.com/2012/02/in_dog_we_trust_rusty.jpghttps://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcSrxH2RAmte9adghivuoOhgklIlUcZUFuCAA0wFufFq-NWyZWg5http://www.buttonsonline.com/2012/obama/BO-rallysign-104.gif

Offline

 

Board footer