Discuss Scratch

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
king_pokemon
Scratcher
3 posts

how do i make an alternator

thank you
OmnipotentPotato
Scratcher
1000+ posts

how do i make an alternator

king_pokemon wrote:

thank you
Your welcome! Next time you need help with scripts, you should post in Help With Scripts though.
king_pokemon
Scratcher
3 posts

how do i make an alternator

oh i dident see that forum

Powered by DjangoBB