Page 2 of 2

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

Posted: Sun Feb 23, 2014 11:49 pm
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.

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

Posted: Sun Feb 23, 2014 11:57 pm
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.

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

Posted: Mon Feb 24, 2014 12:05 am
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.