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

#1 2013-04-13 13:09:36

Qwertys10
New Scratcher
Registered: 2013-04-13
Posts: 1

My sprite will not move

Hi,
I'm making a hangman game, and when I try to get the head to move, it doesn't do anything. It will not respond to commands. It just sits there. What do I do?
--
Qwertys :-)

Offline

 

#2 2013-04-13 14:01:11

joshuaho
Scratcher
Registered: 2012-08-20
Posts: 100+

Re: My sprite will not move

Qwertys10 wrote:

Hi,
I'm making a hangman game, and when I try to get the head to move, it doesn't do anything. It will not respond to commands. It just sits there. What do I do?
--
Qwertys :-)

Did you remember to put this?

when gf clicked

Last edited by joshuaho (2013-04-14 01:33:33)


Did you know that you can go to space and see Mars by clicking here?

Offline

 

#3 2013-04-14 11:08:13

alexphan
New Scratcher
Registered: 2013-04-13
Posts: 2

Re: My sprite will not move

Do this:


When green flag clicked,
forever: |if touching color <the ground>, /if key <jumping key> pressed, set Y speed to 15, else set Y speed to 0.05\, else change Y speed by -1|

and

When green flag clicked,
set X speed to 0
forever: if key <key that makes the sprite move left> pressed, change X speed by -1 if key <key that makes the sprite move right> pressed, change X speed by 1


set X speed to X speed times 0.95
change X by X speed

Offline

 

Board footer