Hover-Over scripting
			4 posts			 • Page 1 of 1		
	
Hover-Over scripting
Is there any way for a hover over script? I mean like, if your mouse hovers over the scripted polygon, it would change a scene.my variable. Is there even such a script?  
  
			Phun was the best program I've ever used. That is, before I discovered Algodoo.
		- 
				

PHUNGL - Posts: 6
 - Joined: Mon Sep 09, 2013 2:49 am
 - Location: US
 
Re: Hover-Over scripting
Check this out: MOUSE OVER EFFECTS
			
		- 
				

Xray - Posts: 501
 - Joined: Sun Jun 17, 2012 6:12 am
 - Location: USA
 
Re: Hover-Over scripting
Slightly what I was looking for...
But how do I alter the code to change a scene.my variable rather than a color tamper?
			But how do I alter the code to change a scene.my variable rather than a color tamper?
Phun was the best program I've ever used. That is, before I discovered Algodoo.
		- 
				

PHUNGL - Posts: 6
 - Joined: Mon Sep 09, 2013 2:49 am
 - Location: US
 
Re: Hover-Over scripting
_mouseOverCircle and _mouseOverBox return TRUE when the mouse cursor is over the geometry. So, for example, your script could be:
_mouseOverCircle ? {scene.my.variable = value}:{}
It works just like any other Boolean (true/false) variable or function.
Does this help?
			
		_mouseOverCircle ? {scene.my.variable = value}:{}
It works just like any other Boolean (true/false) variable or function.
Does this help?
- 
				

Xray - Posts: 501
 - Joined: Sun Jun 17, 2012 6:12 am
 - Location: USA
 
			4 posts			 • Page 1 of 1		
	Who is online
Users browsing this forum: No registered users and 3 guests



