Alice Community  

Go Back   Alice Community > Alice 2 > Works-In-Progress

Thread Tools Display Modes
On mouse over.
Senior Member
legolizard's Avatar
Status: Offline
Posts: 242
Join Date: Jan 2011
Location: Aboard the Hyperion escaping the zerg.
Default On mouse over. - 07-12-2011, 08:23 PM

So I was overly bored and thought, "Hey I wonder if a on mouse over kind of thing would be cool." So here is my work so far now it is EXTREMELY glitchy mainly because I do not know how to make Alice determine the position of the window. Anyway take a look if you want,it really is pretty simple, but I would not use it until I get it to work.

Edit:So I narrowed down all the problems to only two. Now it works fine as long as you keep the window in the same position/size. To fix these problems what I plan on doing is using Arty-fishL's io tool so that I can read the Alice preferences file in the .alice2 folder check to see if the window is in the correct position/size. The only problem with this is that Alice may not automatically change it, and you may have to restart Alice completely.
Any other ideas would be very helpful guys.

Another edit: So I was thinking what if you did not customize the windows position to fit the box but rather the mouses position?

Yet another edit: So I have realized that a coordinate kind of system is just too fickle. However I am going to try one last idea. So I know it is possible to determine the exact color of a pixel under the mouse in java. So what if you could do it in Alice, then on mouse over would be a piece of cake!
Attached Files
File Type: a2w onMouseOver.a2w (181.1 KB, 8 views)

"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."-Albert Einstein

Last edited by legolizard; 07-13-2011 at 04:11 PM. Reason: updating
Reply With Quote
Super Moderator
x2495iiii's Avatar
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 07-13-2011, 06:48 PM

Cool stuff. A former member and I made one of these awhile back. Incorporate it into a game and I'll be impressed.
Reply With Quote

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 ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.