Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/01/26 16:40
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (TipmyPip, the1, AndrewAMD, Quad), 5,068 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Zoom with mouse wheel [Re: Icarni] #322037
05/04/10 14:27
05/04/10 14:27
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Code:
while(1)
{
object1.scale_x -= (mickey.z * 0.001 * time_step);
object1.scale_y = object1.scale_x;
wait(1);
}



0.1 is to big, because mickey.z makes steps from 120. Use 0.001 instead. I try it, it works. And object1 is a PANELPOINTER?

Re: Zoom with mouse wheel [Re: Widi] #322042
05/04/10 14:46
05/04/10 14:46
Joined: Apr 2010
Posts: 20
I
Icarni Offline OP
Newbie
Icarni  Offline OP
Newbie
I

Joined: Apr 2010
Posts: 20
Thanks! I'll try that as soon as I get a chance. object1 is just a name that I'm using to test this out.

Re: Zoom with mouse wheel [Re: Icarni] #322043
05/04/10 14:54
05/04/10 14:54
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
But object1 have to be a Panel, you don`t can use just a name!!

Re: Zoom with mouse wheel [Re: Widi] #322045
05/04/10 15:02
05/04/10 15:02
Joined: Apr 2010
Posts: 20
I
Icarni Offline OP
Newbie
Icarni  Offline OP
Newbie
I

Joined: Apr 2010
Posts: 20
Oh, i see what you mean, yeah it's a panel pointer.

Re: Zoom with mouse wheel [Re: Icarni] #322216
05/05/10 13:58
05/05/10 13:58
Joined: Apr 2010
Posts: 20
I
Icarni Offline OP
Newbie
Icarni  Offline OP
Newbie
I

Joined: Apr 2010
Posts: 20
The code works like a charm! Thanks!

Re: Zoom with mouse wheel [Re: Icarni] #322249
05/05/10 15:16
05/05/10 15:16
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
You`re welcome...

Page 2 of 2 1 2

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