Flappy löve (Works on android! (theoretically))

Show off your games, demos and other (playable) creations.
User avatar
Reef
Prole
Posts: 33
Joined: Sun Mar 04, 2012 10:19 pm

Re: Flappy löve (Works on android! (theoretically))

Post by Reef »

@veethree That's exactly what I had. The player will turn red when it hits a wall and then stays red. I'd like it to switch back to while not colliding with anything but I can't seem to implement that logic properly. Thanks for the response though, your little game has been very educational and inspirational.

@Germanunkol I think what I need to do is figure out when it's not colliding? player.collision does not revert to false when the conditions are no longer met.
User avatar
veethree
Inner party member
Posts: 877
Joined: Sat Dec 10, 2011 7:18 pm

Re: Flappy löve (Works on android! (theoretically))

Post by veethree »

Reef wrote:@veethree That's exactly what I had. The player will turn red when it hits a wall and then stays red. I'd like it to switch back to while not colliding with anything but I can't seem to implement that logic properly. Thanks for the response though, your little game has been very educational and inspirational.
I just tested the code i posted in my previous response, It does exactly what you need it to do.
User avatar
Reef
Prole
Posts: 33
Joined: Sun Mar 04, 2012 10:19 pm

Re: Flappy löve (Works on android! (theoretically))

Post by Reef »

Ah! You're right! I missed the first line, which is what I was missing. I knew it was something simple and obvious. Thank you so much.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests