Computer Science Canada Buttons not getting input + flickering? |
Author: | Pyralblitzzz [ Fri Nov 02, 2012 11:05 am ] | ||
Post subject: | Buttons not getting input + flickering? | ||
What is it you are trying to achieve? I am trying to create a Final Fantasy style RPG and ran into a problem with the battle procedure. What is the problem you are having? I had it working with "get", but thought that it would be nicer with buttons. When I added them, the screen started flickering, and the buttons don't actually get clicked; clicking them just pauses the flickering. (Yes, I am using View.UpdateArea) Describe what you have tried to solve this problem The View.Update functions, reviewing the Turing Tutorial on buttons and widgets. Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) Here is the program
Please specify what version of Turing you are using 4.1 |
Author: | Aange10 [ Fri Nov 02, 2012 11:51 am ] | ||||
Post subject: | RE:Buttons not getting input + flickering? | ||||
Quote: When I added them, the screen started flickering, and the buttons don't actually get clicked; clicking them just pauses the flickering. (Yes, I am using View.UpdateArea)
The problem is your using View.UpdateArea incorrectly. Look at the difference between these two programs:
|
Author: | Insectoid [ Fri Nov 02, 2012 12:19 pm ] |
Post subject: | RE:Buttons not getting input + flickering? |
Your buttons are not working because you create them in a loop. You're effectively stacking hundreds of buttons on top of each other. |
Author: | Pyralblitzzz [ Fri Nov 02, 2012 2:42 pm ] |
Post subject: | Re: Buttons not getting input + flickering? |
Okay, I did both of those things, but now it just flickers a bit less, and the buttons are gone altogether. |
Author: | chipanpriest [ Fri Nov 02, 2012 7:19 pm ] | ||
Post subject: | Re: Buttons not getting input + flickering? | ||
Why use buttons? This is what I do:
|
Author: | Aange10 [ Fri Nov 02, 2012 9:54 pm ] | ||
Post subject: | Re: Buttons not getting input + flickering? | ||
chipanpriest @ 2/11/2012, 6:19 pm wrote: Why use buttons? This is what I do:
I have to agree, this is what I do aswell. I reinvented the wheel and made my own modules simply because I've heard so many terrible things about the Turing GUI that I never wanted to use it. Although honestly, I don't think it's too bad. |
Author: | evildaddy911 [ Tue Nov 06, 2012 5:30 pm ] | ||
Post subject: | RE:Buttons not getting input + flickering? | ||
same here. The turing GUI modules are built for use without the offscreenonly. while my GUI classes aren't as polished looking, they are much more customizable and easier to use. however, if you don't want to make button classes/modules, use the GUI.show and GUI.hide procedures to display youre buttons. EG:
|