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

#1 2012-03-30 22:34:13

Blardow6
New Scratcher
Registered: 2012-03-30
Posts: 10

Help with rotating

okay obviously everyone is like "Wow, this will be easy to figure out what he wants, look at the title!"
Well I can't really Explain this in a title without a paragraph
First look at my scratch game "Minecraft" and then read the rest..
You see the arm of Steve(My character), I've tried several time trying to get it to rotate without completely turning it upside down while its the other way around (While still following my mouse)
And I cant just make it work properly! Because I cant just make it turn around only 2 ways, it has to be able to face up, down, left, and right just by moving my mouse
In simple words I want to know how to clip it on his body while still being able to move around
Confused?
Ill try to tell you what I mean
The arm has a sleeve then a skin part...
I want the sleeve to be stuck on the body and the skin moveable...
Oh, I have an idea to make it better
the skin CANT touch the body
PLLLLZZZZZZ Help  sad   sad   sad

Offline

 

#2 2012-03-30 22:41:09

Blardow6
New Scratcher
Registered: 2012-03-30
Posts: 10

Re: Help with rotating

heres my current script for my arm
[scratchblock]
when gf clicked
forever
  point towards [mouse-pointer v]
end
[/scratchblocks]

when [left arrow v] key pressed
point in direction [-90 v]
repeat [1]
  move [10] steps
  wait [0.25] seconds
  move [10] steps
  wait [0.25] seconds
  move [10] steps
  wait [0.25] seconds
  move [10] steps
  wait [0.25] seconds
(This is for the walk then the sound then the walk then the sound)

when [right arrow v] key pressed
point in direction [90 v]
repeat [1]
  move [10] steps
  wait [0.25] seconds
  move [10] steps
  wait [0.25] seconds
  move [10] steps
  wait [0.25] seconds
  move [10] steps
  wait [0.25] seconds
(Same as last only other direction)

Offline

 

#3 2012-03-30 22:47:01

Blardow6
New Scratcher
Registered: 2012-03-30
Posts: 10

Re: Help with rotating

First one is

when gf clicked
forever
  point towards [mouse-pointer v]
end
soz lol

Offline

 

#4 2012-03-31 07:47:27

legoscratch
Scratcher
Registered: 2010-06-18
Posts: 100+

Re: Help with rotating

What you need to do is make another costume with the arm upside down.
Then add this script:

when gf clicked
 forever
  point towards [mouse-pointer v]
  if <(direction) > [0]>
   switch to costume [normal v]
  else
   switch to costume [upside down v]
  end
 end

Last edited by legoscratch (2012-03-31 07:47:44)


If you are having trouble with simple counting, use the following mnemonic device: 1 comes before 2 comes before 5,280 comes before 523,860,759 comes after the square root of -153 comes before π. This will make your previous counting problems seem like no big deal.

Offline

 

#5 2012-03-31 16:29:44

Blardow6
New Scratcher
Registered: 2012-03-30
Posts: 10

Re: Help with rotating

legoscratch wrote:

What you need to do is make another costume with the arm upside down.
Then add this script:

when gf clicked
 forever
  point towards [mouse-pointer v]
  if <(direction) > [0]>
   switch to costume [normal v]
  else
   switch to costume [upside down v]
  end
 end

Hmm I'll try that
Finished : Thx, But it only works if hes facing left, not right. and when the hand moves it detaches from the body...

Offline

 

#6 2012-03-31 16:31:24

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Help with rotating

Sorry if I closed the shop..  sad


Get ready for domination of:  tongue

Offline

 

#7 2012-03-31 16:36:16

Blardow6
New Scratcher
Registered: 2012-03-30
Posts: 10

Re: Help with rotating

coolhogs wrote:

Sorry if I closed the shop..  sad

What shop?

Offline

 

#8 2012-03-31 16:40:06

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Help with rotating

Blardow6 wrote:

coolhogs wrote:

Sorry if I closed the shop..  sad

What shop?

this shop: http://scratch.mit.edu/forums/viewtopic.php?id=93545


Get ready for domination of:  tongue

Offline

 

#9 2012-03-31 19:34:56

Blardow6
New Scratcher
Registered: 2012-03-30
Posts: 10

Re: Help with rotating

coolhogs wrote:

Blardow6 wrote:

coolhogs wrote:

Sorry if I closed the shop..  sad

What shop?

this shop: http://scratch.mit.edu/forums/viewtopic.php?id=93545

It's fine!

Offline

 

Board footer