I just fixed the problem by my own.
It was because of the y2= y statement, which moved the selection menu down in a really small amount of time.
I totally thinked wrong and even doubted on the variables, but it was just another small mistake.
Search found 5 matches
- Mon Jan 14, 2013 8:33 pm
- Forum: Support and Development
- Topic: permanent variable or: transfer between functions
- Replies: 3
- Views: 1854
- Mon Jan 14, 2013 6:39 pm
- Forum: Support and Development
- Topic: permanent variable or: transfer between functions
- Replies: 3
- Views: 1854
permanent variable or: transfer between functions
Hello everybody. :nyu: I have a new problem with my function for a selection box, which looks like this: http://s9.postimage.org/iv0fre2nv/example.png?noCache=1358187865 The problem is, that all entries are only visible, as long as the left mouse button is pressed down. The code for this action is t...
- Sat Jan 12, 2013 4:14 pm
- Forum: Support and Development
- Topic: Mouse problems
- Replies: 6
- Views: 2560
Re: Mouse problems
Yes, that was the solution.You need 2 equals signs in if statements and 1 in defining variables
It seems like the greatest errors are always the simple ones.
Thank you for your help. Now I can start designing the Game GUI.
- Sat Jan 12, 2013 3:42 pm
- Forum: Support and Development
- Topic: Mouse problems
- Replies: 6
- Views: 2560
Re: Mouse problems
Thank you for your help. :awesome: I already finished my working button class with hover effect: function GUI_button(text, x, y, event) if x < sc_width / 2 then a = 1 else a = -1 end x = x + 1; y = y + 1; width = 120; height = 40; textlength = string.len(text)*11 - 1; if mx > (x) and mx < (x + width...
- Sat Jan 12, 2013 1:32 pm
- Forum: Support and Development
- Topic: Mouse problems
- Replies: 6
- Views: 2560
Mouse problems
Hello everybody. I just started to make a game with LÖVE Framework and already got some problems. Everytime i try to use the love.mouse.isDown method or the mousepressed function nothing happens. I tried different approaches and searched the forum for information but nothing helped so far. These are...