Beetle

when @greenFlag clicked
go to x: (-236) y: (-15)
point in direction (90)
set [delta v] to [10]
forever
    if  then
        say [Anda tertabrak]
        stop [all v]
    end
    change x by (delta)
    wait (0.2) seconds
    if <(delta) \> [0]> then
        if <(x position) \> [235]> then
            set [delta v] to [-10]
            turn @turnRight (180) degrees::motion
        end
    else
        if <(x position) \< [-235]> then
            set [delta v] to [10]
            turn @turnRight (180) degrees::motion
        end
    end
end

Kucing

when [up arrow v] key pressed::event
change y by (10)

when [down arrow v] key pressed::event
change y by (-10)

when [left arrow v] key pressed::event
change x by (-10)

when [right arrow v] key pressed::event
change x by (10)

when @greenFlag clicked
go to x: (0) y: (-149)

base 2

when @greenFlag clicked
forever
    if  then
        start sound [pop v]
        stop [all v]
    end
end

Leave a Comment