Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » how do i make an alternator
- king_pokemon
- Scratcher
3 posts
how do i make an alternator
what I want for my game is a type of scipt where if you press lets say “q” it will do one thing and if you press it again it will alternate it
- OmnipotentPotato
- Scratcher
1000+ posts
how do i make an alternator
when green flag clicked
set [mode v] to [1 ]
forever
if <key [q v] pressed?> then
if <(mode) = [1 ]> then
do something :: motion
set [mode v] to ((mode) * (-1))
else
do something else :: motion
set [mode v] to ((mode) * (-1))
end
end
end
- OmnipotentPotato
- Scratcher
1000+ posts
how do i make an alternator
Your welcome! Next time you need help with scripts, you should post in Help With Scripts though. thank you
- Discussion Forums
- » Questions about Scratch
- » how do i make an alternator