|
|
#1 |
|
Forum King
Join Date: Aug 2002
Location: The Netherlands
Posts: 4,121
|
Buttons in AVS
It's questionable if this belongs in the presets subforum or in the AVS forum, but I didn't start this thread only about the preset, but more about the functionality.
A lot of people have already worked this out, but here's my way of doing this: You don't want the button to flip per frame when you hold the mouse button for multiple frames, what would happen if you would simply use button=getkbmouse(3); I solved this by generating a pulse when the mouse-button is pressed. This pulse normally would only trigger the button for 1 frame. You want it to switch per pulse. Here's how I solved it all (button is reg02). code: Example preset is attached (will most likely be in my new pack). The button appears when you move the mouse over the left and bottom of the preset ( xpos < -0.9 or ypos < 0.9 ) Click it and the preset changes. Also explained in the comment. Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|