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 (TipmyPip), 18,633 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
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