Discuss Scratch
- Discussion Forums
- » New Scratchers
- » Code
- ChipStudios
- Scratcher
12 posts
Code
Arrow key function:
when green flag clicked
forever
if <key [ right] pressed?> then
point in direction ( 90)
move (5) steps
else
if <key [ left] pressed?> then
set rotation style [ left/right]
point in direction ( -90)
move (5) steps
else
if <key [ up] pressed?> then
change y by (5)
else
if <key [ down] pressed?> then
change y by (-5)
end
end
end
end
end
Last edited by ChipStudios (Oct. 21, 2020 01:34:37)
- ChipStudios
- Scratcher
12 posts
Code
Thumbnail Code:
when green flag clicked
set [ ghost] effect to (100)
go to x: (?) y: (?)
- Discussion Forums
- » New Scratchers
- » Code