Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] Slider code find value to use

Author
Message
Game_Code_here
4
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 22nd Dec 2021 03:16 Edited at: 22nd Dec 2021 03:21
I am using a example for sliders to adjust game values and I do not know what value to use to change anything.

Here are the functions. I am testing to find the value to change with scrollval but this does nothing. I tried just about every value i can find.

SetObjectColor( Joseph, scrollval[1] , scrollval[2] , scrollval[3], 255 ), I tried c but this only works with every slider not just the ones I want.

in using this example

https://forum.thegamecreators.com/thread/227392#msg2663038

The author of this post has marked a post as an answer.

Go to answer

hendron
8
Years of Service
User Offline
Joined: 20th Dec 2015
Location:
Posted: 22nd Dec 2021 19:15 Edited at: 22nd Dec 2021 19:45
This post has been marked by the post author as the answer.
I found that code to be a little bit confusing as well and decided to put my own little slider include file together. It may or may not be as performant, but you might find it easier to use.

Slider.agc


and to test it out:
Game_Code_here
4
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 23rd Dec 2021 04:49
hendron

Thank you, I will look at this and let you know how it works.

thank you for the time.
Game_Code_here
4
Years of Service
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 23rd Dec 2021 05:56
Ok, I had to scale the sprites to my windows scale but this works perfectly.

I am so impressed.

Thank you so much hendron.

Login to post a reply

Server time is: 2024-11-21 13:30:14
Your offset time is: 2024-11-21 13:30:14