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

#1 2012-05-12 08:32:04

chongyian
Scratcher
Registered: 2012-05-08
Posts: 1000+

Help with Movement

How do I program the car to move less steps on grass(Must use steps) Thanks!










when gf clicked
say[thanks!] for 3 secs
stop all

Offline

 

#2 2012-05-12 09:04:37

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

Re: Help with Movement

when gf clicked
forever
if<key [right arrow v] pressed?>
turn cw (5) degrees
end
if<key [left arrow v] pressed?>
turn ccw (5) degrees
end
if<touching [grass v]?>
move (3) steps
else
move (6) steps
end


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

Offline

 

#3 2012-05-12 09:06:46

pi3
Scratcher
Registered: 2011-12-31
Posts: 500+

Re: Help with Movement

when gf clicked
forever
    if <key [up arrow v] pressed>
       if <touching color green>
           move [2] steps
        else
           move [4] steps
        end
    end
end
smile

Last edited by pi3 (2012-05-12 09:08:50)


http://i44.tinypic.com/ofdhc4.jpgThanks FreshStudios!

Offline

 

#4 2012-05-12 09:09:56

Willpower
Scratcher
Registered: 2012-01-26
Posts: 1000+

Re: Help with Movement

when gf clicked
say[thanks!] for 3 secs
stop all 
scratchblocks fixed

As for the grass issue prehaps you could say move five steps normally then
if [touching grass]
move (3 steps)
so less steps, hope this is right!

i could have had first post if typing on the wii was faster  sad

Last edited by Willpower (2012-05-12 09:12:30)


http://i49.tinypic.com/e84kdj.png

Offline

 

#5 2012-05-12 21:35:24

chongyian
Scratcher
Registered: 2012-05-08
Posts: 1000+

Re: Help with Movement

Thanks for your suggestions! I am going to edit my game now! Meanwhile, why not check out my Gallery : EpiCreatioNs. !

Offline

 

Board footer