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

#1 2012-05-03 19:03:18

SalemFox
New Scratcher
Registered: 2011-12-05
Posts: 10

Help with pointing sprites in the right direction?

Okay so i have this sprite with animation and everything   And i want it to point left whenever i press left and point right whenever i press right.

The problem is that Whenever i press left,  It Stays pointing left no matter how much i point it right  Does anyone have some kind of way to get this to work right?

Offline

 

#2 2012-05-03 19:31:05

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

Re: Help with pointing sprites in the right direction?

when gf clicked
forever
if <key [right arrow v] pressed?>
 point in direction (90 v)
end
if <key [left arrow v] pressed?>
 point in direction (-90 v)
end

Last edited by chanmanpartyman (2012-05-03 19:31:32)

Offline

 

#3 2012-05-03 19:49:44

SalemFox
New Scratcher
Registered: 2011-12-05
Posts: 10

Re: Help with pointing sprites in the right direction?

do they have to be in the Same thing or can they be separate?

Offline

 

#4 2012-05-03 19:51:47

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Help with pointing sprites in the right direction?

Its better to have them in the same thing.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#5 2012-05-03 20:27:30

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

Re: Help with pointing sprites in the right direction?

You should keep them in the same script, because it reduces glitches and increases speed.

Offline

 

Board footer