Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Grant, AndrewAMD, ozgur, Quad, TipmyPip), 29,980 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Horizontal Slider - starting position? #7291
10/24/01 04:50
10/24/01 04:50

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



I'm trying to make a horizontal slider that controls the movement of one of my characters. It will control the zoom-in, zoom-out feature of the camera position.

My problem is trying to get the initial position of the slider to be in the center of the variable spread, so if I move it to the left, the variable is negative, and if I move to the right, the variable is positive. The only problem is the bmap in the hslider function always starts at the extreme left. Is there a way to make it start in the center of the variable spread, so the number can decrease or increase, not just increase?


Re: Horizontal Slider - starting position? #7292
10/24/01 05:34
10/24/01 05:34
Joined: May 2001
Posts: 1,261
Outarville, France
al1 Offline
Expert
al1  Offline
Expert

Joined: May 2001
Posts: 1,261
Outarville, France
look at this :


hslider = 11,90,100,cursor_map,1,3,var_slide;

If i start with var var_slide = 1; the cursor start at left

If i start with var var_slide = 2; the cursor start at middle

If i start with var var_slide = 3; the cursor start at right

You can't use negative value but you can write :
val_zoom = var_slide -2;




Moderated by  HeelX, Spirit 

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