Mouse state

Talk about making games.

Mouse state

Postby Joshua Worth » Fri Jan 06, 2006 1:53 am

if there a script command to get the state of a mouse button?
Stay sweet
User avatar
Joshua Worth
 
Posts: 515
Joined: Tue Jul 19, 2005 12:00 am
Location: Stralia
Score: 5 Give a positive score

Postby makslane » Fri Jan 06, 2006 7:32 pm

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
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Joshua Worth » Fri Jan 06, 2006 10:30 pm

Can you make something that when it's clicked on, it also clicks the thing underneath?
Stay sweet
User avatar
Joshua Worth
 
Posts: 515
Joined: Tue Jul 19, 2005 12:00 am
Location: Stralia
Score: 5 Give a positive score

Postby makslane » Sat Jan 07, 2006 1:15 am

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.
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Joshua Worth » Sat Jan 07, 2006 4:44 am

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
Stay sweet
User avatar
Joshua Worth
 
Posts: 515
Joined: Tue Jul 19, 2005 12:00 am
Location: Stralia
Score: 5 Give a positive score

Postby Joshua Worth » Tue Jan 10, 2006 9:33 pm

hello?
Stay sweet
User avatar
Joshua Worth
 
Posts: 515
Joined: Tue Jul 19, 2005 12:00 am
Location: Stralia
Score: 5 Give a positive score

Postby Game A Gogo » Tue Jan 10, 2006 10:41 pm

makslane is very busy sometimes, so he cannot enswer right away
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby makslane » Wed Jan 11, 2006 11:02 pm

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?
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Joshua Worth » Thu Jan 12, 2006 12:25 am

WHAT!!?
Stay sweet
User avatar
Joshua Worth
 
Posts: 515
Joined: Tue Jul 19, 2005 12:00 am
Location: Stralia
Score: 5 Give a positive score

Postby Joshua Worth » Thu Jan 12, 2006 12:34 am

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?
Stay sweet
User avatar
Joshua Worth
 
Posts: 515
Joined: Tue Jul 19, 2005 12:00 am
Location: Stralia
Score: 5 Give a positive score

Postby makslane » Thu Jan 12, 2006 7:31 pm

Sorry for the portuguese message :oops:
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby makslane » Thu Jan 12, 2006 7:33 pm

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?
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Novice » Thu Jan 12, 2006 11:28 pm

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.
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score

Postby Joshua Worth » Fri Jan 13, 2006 1:17 am

Your not wrong < and ^ were just examples of the mouse
Stay sweet
User avatar
Joshua Worth
 
Posts: 515
Joined: Tue Jul 19, 2005 12:00 am
Location: Stralia
Score: 5 Give a positive score

Postby makslane » Fri Jan 13, 2006 5:15 pm

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.
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Next

Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest