I'm trying to draw a bubble next to the player when the confirm is pushed, but for some reason draw is not working. Maybe I'm using it wrong? Any help would be appreciated!
// player bubbles
on confirm do
if event.dy==-1 then
sound "make bubble"
swap "bubble"
bubble_posX = event.px
bubble_posY = event.py
bubble_posY -= 1
draw "bubble attached" at bubble_posX,bubble_posY
// player facing down
elseif event.dy==1 then
sound "make bubble"
bubble_posX = event.px
bubble_posY = event.py
bubble_posY += 1
draw "bubble attached" at bubble_posX,bubble_posY
end
// player facing left
if event.dx==-1 then
swap "player hold left"
sound "make bubble"
bubble_posX = event.px
bubble_posY = event.py
bubble_posX -= 1
draw "bubble attached" at bubble_posX,bubble_posY
// player facing right
elseif event.dx==1 then
swap "player hold right"
sound "make bubble"
bubble_posX = event.px
bubble_posY = event.py
bubble_posX += 1
draw "bubble attached" at bubble_posX,bubble_posY
end