Page 1 of 1

The buttons that wouldn't die =^.^=

PostPosted: Tue Dec 20, 2005 10:38 pm
by NyahKitty
I've set up a bunch of activation events so that when one button is clicked all the lights for the other buttons remain red and the light for the clicked button turns green.

The process is something like this:

-click button
-activation event to red light so that it creates actor the green light right on top of it.
-click any other button should turn that green light to red

what I find is that the light for the button at the top of the stack stays on no matter what and if I click any other button two times in a row, then the light stays green for each of those buttons.

Here's the zip file with the ged and image files:

http://www.hodgepodgestudios.com/files/MISCELANEOUS/Dr_DeGroot.zip

The problem has to do with the six buttons on the left marked "Exercise #"


Thanks!

PostPosted: Thu Dec 22, 2005 5:22 pm
by Novice
I'm not at my GE computer but im guessing that the problem is that you create new buttons over the old ones instead of changing animations. So mouse down events get mixed up, because you are clicking the new button.
If you did this using vars you wouldnt have that problem.
Sorry if im wrong this is just an asumption.

PostPosted: Thu Dec 29, 2005 4:35 pm
by NyahKitty
By vars, you mean variables?

PostPosted: Fri Dec 30, 2005 3:21 pm
by Novice
Yes, for ex.
Code: Select all
if (ButtonState==1) ChangeAnimation...
else if (ButtonState==2) ChangeAnimation...

On mouse click change ButtonState.