Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (Dico), 16,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Mouse Range? #429588
09/14/13 19:18
09/14/13 19:18
Joined: Dec 2009
Posts: 361
R
rtsgamer706 Offline OP
Senior Member
rtsgamer706  Offline OP
Senior Member
R

Joined: Dec 2009
Posts: 361
I recently started a small project where I made some code so that an entity will increase it's ambient if the mouse hovers over it using: "event_touch".
The code is fine except for the fact that if the camera is more than 2000 units away from the object, it simply does not recognise the mouse being over the entity.
Does anyone know why this is, and how I can get around it?
Thanks
Rtsgamer706

Re: Mouse Range? [Re: rtsgamer706] #429589
09/14/13 19:23
09/14/13 19:23
Joined: Jul 2008
Posts: 2,110
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,110
Germany
Code:
mouse_range

?

Quote:
is more than 2000 units away from the object, it simply does not recognise the mouse being over the entity.
Default of mouse_range = 2000 grin

edit: The manual is ur friend ^^

Last edited by rayp; 09/14/13 19:34. Reason: added advice to read the manual first :D

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: Mouse Range? [Re: rayp] #429591
09/14/13 20:10
09/14/13 20:10
Joined: Dec 2009
Posts: 361
R
rtsgamer706 Offline OP
Senior Member
rtsgamer706  Offline OP
Senior Member
R

Joined: Dec 2009
Posts: 361
lol nice, didn't even realize that was a command, just guessed the name. Thanks

Re: Mouse Range? [Re: rtsgamer706] #429592
09/14/13 20:13
09/14/13 20:13
Joined: Jul 2008
Posts: 2,110
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,110
Germany
hehe the thread title is the solution. cool grin

greets


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1