Browse Search Popular Register Upload Rules User list Login:
Search:
Mouse over script

Image:
screenshot of the scene

Author: homieeee

Group: Default

Filesize: 67.01 kB

Date added: 2013-07-19

Rating: 5

Downloads: 397

Views: 331

Comments: 3

Ratings: 1

Times favored: 0

Made with: Algodoo before v1.8.5

Tags:

Scene tag

script for mouse over
Please log in to rate this scene
edit
Similar scenes
Title: Example For Pootis-Man
Rating: 5
Filesize: 10.14 kB
Downloads: 451
Comments: 6
Ratings: 1
Date added: 2017/06/14 22:10:48
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Mouse over object
Rating: 5
Filesize: 14.36 kB
Downloads: 515
Comments: 0
Ratings: 1
Date added: 2023/06/18 14:04:06
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Mouse Follow Tech Demo
Rating: 5
Filesize: 14.3 kB
Downloads: 771
Comments: 3
Ratings: 1
Date added: 2013/11/16 04:03:58
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: M4A1 Carbine (Phun) Mouse Operated Rifle
Rating: 8.2
Filesize: 332.19 kB
Downloads: 7543
Comments: 31
Ratings: 14
Date added: 2010/03/05 23:11:45
Made with: Algodoo before v1.8.5
Rating: rated 8.2
download
Title: Super shoot-out (script-intensive)
Rating: 7.7177
Filesize: 122.48 kB
Downloads: 1460
Comments: 8
Ratings: 11
Date added: 2009/03/24 08:20:50
Made with: Phun
Rating: rated 7.7
download
Title: ARRAY COLOR FOLLOWS MOUSE
Rating: 6
Filesize: 67.34 kB
Downloads: 1532
Comments: 3
Ratings: 3
Date added: 2012/10/06 06:11:35
Made with: Algodoo v2.0.2
Rating: rated 6
download
Good tutorial! Have you considered writing about it in the Algodoo forum in the "Tutorials" section? There you can write much more detail and give other examples and sample scenes.

:tup:
Thank you! no I did not consider that but I will look in to it!:)
Programmable version whithout scene.my.* variables:

{
P = Set here the it's position or other position;
S = Set here it's size o just put another;
DX = (P(0) - app.mousepos(0)) > 0 ? P(0) - app.mousepos(0) : math.negate(P(0) - app.mousepos(0));
DY = (P(1) - app.mousepos(1)) > 0 ? P(1) - app.mousepos(1) : math.negate(P(1) - app.mousepos(1));
DY < S(1) / 2 && DX < S(0) / 2
}

If the mouse is in the correct area itwill run whatever script! :tup:
Yours do the same thing but i use math.negate instead of use sings (+ -).