Search found 6 matches

by aezys
Mon Jul 06, 2020 3:10 pm
Forum: Support and Development
Topic: for loop counter inside love.update is not updating?
Replies: 5
Views: 2372

Re: for loop counter inside love.update is not updating?

Yeah, that makes sense, thank you
by aezys
Mon Jul 06, 2020 11:57 am
Forum: Support and Development
Topic: for loop counter inside love.update is not updating?
Replies: 5
Views: 2372

Re: for loop counter inside love.update is not updating?

Thank you a lot, I got it working! I'm still not too sure what the issue was. Is it possible that since love.upate is run continuosly the for loop is reset every time?
by aezys
Mon Jul 06, 2020 10:34 am
Forum: Support and Development
Topic: for loop counter inside love.update is not updating?
Replies: 5
Views: 2372

for loop counter inside love.update is not updating?

I'm trying to write some code to make something happen, wait a couple of seconds and then do it again. What I was doing wasn't working so I tried to reproduce the situation in a simplified way. What I expected to happen here was to have the message "before loop" appear, wait for two second...
by aezys
Sat Jul 04, 2020 9:12 pm
Forum: Support and Development
Topic: Changing the colour of a button when clicked
Replies: 4
Views: 2908

Re: Changing the colour of a button when clicked

Ohh, I did not think of it. It works now, thank you so much!
by aezys
Sat Jul 04, 2020 8:32 pm
Forum: Support and Development
Topic: Changing the colour of a button when clicked
Replies: 4
Views: 2908

Re: Changing the colour of a button when clicked

Thank you for the reply! I added the code you said and then I noticed that i wrote clicked instead of self.clicked. And I think that's because clicked wouldn't be defined and so the return value would be false, right? I'm kind of a noob sorry ^^'. Anyway, now the if-else statement is like this: if s...
by aezys
Sat Jul 04, 2020 3:24 pm
Forum: Support and Development
Topic: Changing the colour of a button when clicked
Replies: 4
Views: 2908

Changing the colour of a button when clicked

I'm trying to make a button change colour for a few seconds after it has been clicked but I'm not sure on how to do it. Currently this is part of my button class code, I know the click detection works because it also plays a sound when clicked: function Box:isHovered(x,y) if x > self.X and x < self....