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

#1 2012-04-14 11:47:41

jose6a
New Scratcher
Registered: 2011-08-08
Posts: 23

my cat and up down right left directions ...

hello every scratchers !

I'm a new french scratcher, so please
be cool with my english, and my poor scratch control ...

well, my very first scratch project, is to move around the scene
with my cat...

this first new project can be read there :
http://scratch.mit.edu/projects/jose6a/2468611

so, i want my cat simply to look toward the direction
it goes...

UP workd fine
DOWN works fine
right works fine

BUT left doesn't work as i want. I want that the cat goes left (ok)
but feet down, head up...

please how can i  do that ?


THANKS A LOT
José

Offline

 

#2 2012-04-14 11:50:56

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: my cat and up down right left directions ...

You can make a new costume on it where the scratch cat is flipped using the flip horizontal button and then use this script

when gf clicked
forever
if <key [left arrow v] pressed?>
switch to costume [costume that you have for left v]
change x by [-5]
end

Offline

 

#3 2012-04-14 12:00:54

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: my cat and up down right left directions ...

What you need to do is set the rotation mode to flip. To do this, find the three buttons in the top left corner of the bit where you type in the sprite's name. Then click the middle one.
http://i43.tinypic.com/j5dp2q.jpg


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#4 2012-04-14 12:10:54

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: my cat and up down right left directions ...

joefarebrother wrote:

What you need to do is set the rotation mode to flip. To do this, find the three buttons in the top left corner of the bit where you type in the sprite's name. Then click the middle one.
http://i43.tinypic.com/j5dp2q.jpg

Yes but now he won't point up or down.


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#5 2012-04-14 13:23:18

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: my cat and up down right left directions ...

soupoftomato wrote:

joefarebrother wrote:

What you need to do is set the rotation mode to flip. To do this, find the three buttons in the top left corner of the bit where you type in the sprite's name. Then click the middle one.
http://i43.tinypic.com/j5dp2q.jpg

Yes but now he won't point up or down.

Well you could have seperate costumes for up and down. Then do

forever
if <key [up v] pressed?>
switch to costume [up v]
point in direction (0)
move (a number of) steps
end
if <key [down v] pressed?>
switch to costume [down v]
point in direction (180)
move (a number of) steps
end
if <key [left v] pressed?>
switch to costume [left-right v] //only one costume needed when using flip mode
point in direction (-90)
move (a number of) steps
end
if <key [up v] pressed?>
switch to costume [left-right v]
point in direction (90)
move (a number of) steps
end

Last edited by joefarebrother (2012-04-14 13:23:59)


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#6 2012-04-14 13:24:23

jose6a
New Scratcher
Registered: 2011-08-08
Posts: 23

Re: my cat and up down right left directions ...

Hello, thanks to all, I'am agree with soupoftomato, once you chose the "flip" mode, the cat don't position correctly for the up, and down position ...

BUT, my friend Daniel who is sitting bye my side, makes another script
that works very well (il a de la chance) here :
http://scratch.mit.edu/projects/jose6a/2469267

BUT he (and I) doen't understand why ....

he make's a new costume with the head at bottom ....

what are the true rules with costumes ?

please, have a looks thancks !

José

Offline

 

#7 2012-04-14 13:29:22

jose6a
New Scratcher
Registered: 2011-08-08
Posts: 23

Re: my cat and up down right left directions ...

hello, joefarebrother have a look at my project to see the Daniel's script.

He doesn't use the flip mode, juste use a new costume named cat1-a1
that has the head at bottom ....

why ?

thanks

Offline

 

#8 2012-04-14 16:22:19

HD123
Scratcher
Registered: 2009-12-05
Posts: 500+

Re: my cat and up down right left directions ...

jose6a wrote:

hello, joefarebrother have a look at my project to see the Daniel's script.

He doesn't use the flip mode, juste use a new costume named cat1-a1
that has the head at bottom ....

why ?

thanks

Each costume, when you draw it, starts out turned at 90 degrees (pointing to the right). That is the default or normal direction for the costume to face. When costume cat1-a faces -90 degrees, it just looks that way, as if you were to draw it on paper. In the small box above the "scripts, costumes, sounds" tabs ("scripts costumes sons" tabs), there is an image of the sprite with a blue arrow. Drag the blue arrow and look at the sprite (on the project screen), and you will see what I am saying.


~~HD123~~
Treat others as you want to be treated. |  big_smile  | http://i.imgur.com/OaNrY.gif | http://blocks.scratchr.org/libstatus.php?user=HD123&amp;online=http://lemonfanatic.webs.com/ONLINE.png&amp;offline=http://lemonfanatic.webs.com/OFFLINE.png

Offline

 

Board footer