Log In  

Cart #33016 | 2016-12-04 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

It's been a busy month, and this is the only thing I was remotely happy to put out. I thought I could make parallax happen, and I kind of did, but then I liked the parallax so much I didn't know what else to do. So here is this chillout thing where you just fly your plane up and down and listen to the rain. Up/Down arrows to move.

P#33017 2016-12-04 18:21 ( Edited 2016-12-05 17:54)

I incorporated a collision at the top and bottom of the screen within the button functions.
It might not be the correct way of doing it, but it works ;-)

    if(btn(2))
    then
        player.y-=1
    if player.y < -2 then player.y = -2 --Added
    end
    end
    if(btn(3))
    then
        player.y+=1
    if player.y > 122 then player.y = 122 --Added
    end
P#33075 2016-12-05 12:54 ( Edited 2016-12-05 17:55)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-20 06:55:02 | 0.035s | Q:13