Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/20/26 15:57
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 3,544 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
juergenwue, VladMak, Geir, ondrej, mredit
19208 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
zoom in and out using middle mouse #275327
07/01/09 01:20
07/01/09 01:20
Joined: Jun 2009
Posts: 31
USA
G
Gus65 Offline OP
Newbie
Gus65  Offline OP
Newbie
G

Joined: Jun 2009
Posts: 31
USA
whats the script codes for using the middle mouse roll forward and backward in order to zoom in and out the map ?
thx.

Re: zoom in and out using middle mouse [Re: Gus65] #275330
07/01/09 01:44
07/01/09 01:44
Joined: Mar 2009
Posts: 276
Cebu City, Philippines
boyax Offline
Member
boyax  Offline
Member

Joined: Mar 2009
Posts: 276
Cebu City, Philippines
adjusting the camera.arc would do the zoom in/out.
try to look in the manual for mouse_middle

Re: zoom in and out using middle mouse [Re: boyax] #275333
07/01/09 02:07
07/01/09 02:07
Joined: Aug 2003
Posts: 902
Van Buren, Ar
Gordon Offline
User
Gordon  Offline
User

Joined: Aug 2003
Posts: 902
Van Buren, Ar
Try to use the manual it is a big help...

mickey
Movement of the mouse in pixels (mickey.x, mickey.y) and the mouse wheel in 120 units per notch (mickey.z) within the last frame.
Type:
vector, read-only
Example:
action move_me_by_mouse()
{
mouse_mode = 0;
while (1)
{
my.pan += mickey.x*time_step;
my.tilt += mickey.y*time_step;
c_move(me,vector(mickey.z*0.1*time_step,0,0),nullvector,0);
wait(1);
}
}


Our new web site:Westmarch Studios

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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