football
unknown
csharp
9 months ago
782 B
14
Indexable
when green flag clicked
go to x: -200 y: 0
forever
if <key [right arrow v] pressed> then
change x by 10
end
if <key [up arrow v] pressed> then
change y by 10
end
if <key [down arrow v] pressed> then
change y by -10
end
end
when green flag clicked
go to x: (pick random -100 to 100) y: (pick random -150 to 150)
forever
point towards [Football Player v]
move 3 steps
if <touching [Football Player v]> then
say [Tackled!] for 2 seconds
stop all
end
end
when green flag clicked
go to x: 200 y: 0
forever
if <touching [Football Player v]> then
say [Touchdown!] for 2 seconds
stop all
end
end
when green flag clicked
go to x: 200 y: 0
end
when green flag clicked
set [Score v] to 0
forever
wait 1 seconds
change [Score v] by 1
end
Editor is loading...
Leave a Comment