Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   mouse distance from... (http://www.alice.org/community/showthread.php?t=4542)

DensetsuNoKaboom 06-04-2010 04:15 PM

mouse distance from...
 
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?

room14 06-04-2010 04:49 PM

yes

dubastot 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.:D

My actions: are useless

jediaction 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"

DensetsuNoKaboom 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.

jediaction 06-04-2010 07:54 PM

[QUOTE=DensetsuNoKaboom;21993]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.[/QUOTE]

Oh sorry. Do the object version from cursor

DensetsuNoKaboom 06-11-2010 08:06 PM

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


All times are GMT -5. The time now is 09:35 PM.

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