Using constrain for a complex shop bar
Hey guys,
I am stucked right now at a shop for a game. The game uses a bar to scroll down, when you move the bar down,
the items in shop should move up and ones from the bottoms should come up, I think the system is clear.
Basically on one scene, 3 items fit. I have 9 in total. The bar position is constrained to an integer going from min 30 to max 130. I am trying to come up with a exponential formula that works. Because when the bar for example moves down 1/3 of it's way, the items on first page have to be gone, so +1024 (I am using iPad). Is there someone who could help me?
Thx for the help!
Alex
I am stucked right now at a shop for a game. The game uses a bar to scroll down, when you move the bar down,
the items in shop should move up and ones from the bottoms should come up, I think the system is clear.
Basically on one scene, 3 items fit. I have 9 in total. The bar position is constrained to an integer going from min 30 to max 130. I am trying to come up with a exponential formula that works. Because when the bar for example moves down 1/3 of it's way, the items on first page have to be gone, so +1024 (I am using iPad). Is there someone who could help me?
Thx for the help!
Alex
Comments
I've just posted an updated demo at the bottom of that discussion.