Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by ukgamer. 08/30/26 14:27
ZorroGPT
by TipmyPip. 08/29/26 06:56
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 2,828 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 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,115
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,115
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,115
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,115
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