Page 1 of 2

Mouse state

PostPosted: Fri Jan 06, 2006 1:53 am
by Joshua Worth
if there a script command to get the state of a mouse button?

PostPosted: Fri Jan 06, 2006 7:32 pm
by makslane
There is no function to get mouse state, but you can create a variable and set the value in a Mouse Button Down and Up events

PostPosted: Fri Jan 06, 2006 10:30 pm
by Joshua Worth
Can you make something that when it's clicked on, it also clicks the thing underneath?

PostPosted: Sat Jan 07, 2006 1:15 am
by makslane
If you have an actor A above some other actor B, like a ground, and you need to get click on B even if mouse click on actor A, just disable the mouse events on actor A by using the "Event Disable" action.

PostPosted: Sat Jan 07, 2006 4:44 am
by Joshua Worth
I was wondering if I could have a mouse in two positions: up and down. Then I couldhave the mouse so when I clicked anywhere, it would go down

PostPosted: Tue Jan 10, 2006 9:33 pm
by Joshua Worth
hello?

PostPosted: Tue Jan 10, 2006 10:41 pm
by Game A Gogo
makslane is very busy sometimes, so he cannot enswer right away

PostPosted: Wed Jan 11, 2006 11:02 pm
by makslane
Joshua Worth wrote:I was wondering if I could have a mouse in two positions: up and down. Then I couldhave the mouse so when I clicked anywhere, it would go down


Eu não entendi. Você pode explicar melhor?

PostPosted: Thu Jan 12, 2006 12:25 am
by Joshua Worth
WHAT!!?

PostPosted: Thu Jan 12, 2006 12:34 am
by Joshua Worth
Google Portuguese to English worked. I could have normal: ^ and clicking: <. While I have the mouse button down, i want it to be: < , when the mouse button is up i want it to be: ^. Get it?

PostPosted: Thu Jan 12, 2006 7:31 pm
by makslane
Sorry for the portuguese message :oops:

PostPosted: Thu Jan 12, 2006 7:33 pm
by makslane
Joshua Worth wrote:I could have normal: ^ and clicking: <. While I have the mouse button down, i want it to be: < , when the mouse button is up i want it to be: ^. Get it?


What's is < and ^ in your post?

PostPosted: Thu Jan 12, 2006 11:28 pm
by Novice
I think what he is trying to say is that he wants to have a mouse state variable that will change on mouse down regardles on what he is clicking on. He could do the same thing by creating a mouse down event on every actor in his game but that would take to much time and effort. Correct me if im wrong Joshua.

PostPosted: Fri Jan 13, 2006 1:17 am
by Joshua Worth
Your not wrong < and ^ were just examples of the mouse

PostPosted: Fri Jan 13, 2006 5:15 pm
by makslane
In this case, you can use a Filled Region actor to catch the clicks,
use a variable to update the mouse state, and make the other actors look this variable in some other event.