Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
mouse distance from...
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,188
Join Date: May 2010
Location: e4eaf2
Default mouse distance from... - 06-04-2010, 04:15 PM

I am trying to make a game where at one point you have to keep the mouse cursor away from an object and if your cursor gets too close, you lose. Is it possible to do that?


Thank you for taking the time to read this signature. This signature loves you.
   
Reply With Quote
Old
room14
Senior Member
 
room14's Avatar
 
Status: Offline
Posts: 549
Join Date: Nov 2009
Location: Auckland New Zealand
Default 06-04-2010, 04:49 PM

yes


:D
   
Reply With Quote
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Default 06-04-2010, 05:22 PM

Question: I am trying to make a game where at one point you have to keep the mouse cursor away from an object and if your cursor gets too close, you lose. Is it possible to do that?

Answer: yes

My thoughts: Awesome answer.

My actions: are useless


I'm a web developer/ designer now.
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 06-04-2010, 05:35 PM

You need to do a mouse distance from left function. If you know how to do it, just think it out. Make it if distance is below 1 meter or what ever, do "lose method"


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,188
Join Date: May 2010
Location: e4eaf2
Default 06-04-2010, 06:00 PM

That makes it do the mouse's distance from the edge of the window, not the object. I am trying to figure out how to do the latter.


Thank you for taking the time to read this signature. This signature loves you.
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 06-04-2010, 07:54 PM

Quote:
Originally Posted by DensetsuNoKaboom View Post
That makes it do the mouse's distance from the edge of the window, not the object. I am trying to figure out how to do the latter.
Oh sorry. Do the object version from cursor


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,188
Join Date: May 2010
Location: e4eaf2
Default 06-11-2010, 08:06 PM

Drat, can't figure out how to do that either.


Thank you for taking the time to read this signature. This signature loves you.
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.