Make a touch images slider

Get help using Construct 2

Post » Wed Mar 19, 2014 9:39 pm

Hi everyone,

Fist of all sorry about my english, I hope google translate will help me a bit ;)
I'm fairly new in Construct 2 so sorry, again, if the question is a bit simple.
I want to make a touch images slider (about 10 images), the layout looks this way:

Image.

And in game screen is this:
Image

So, what I wanna do is to scroll the images with the finger and make 100% opaque the center image and about 40 % opacity the images on the both sides (beyond the viewport images are not visible).

Right now, the game works fine, It´s almost finish, but now, at the last details, i have a lot of problemems with thing like save games, global programming (like activating this images in the menu when you reach certain score during the game)..., so,I think, that I will post a couple of stupid questions in a few days...

PD: Although the title is flap space, the game is not a clone of flappy bird:

Image
B
13
S
5
Posts: 5
Reputation: 985

Post » Thu Mar 20, 2014 12:05 am

Think you should be able to do it, by simply using the width of the screen. (This ofc depends on how you made it, so it might not work.)

Here is an example of how to do it.

Since you know that the screen is a certain size you can use that to decide the opacity of the image. In this example you can scroll the image from side to side and it will update the opacity from 40 on this sides to 100 in the center of the image.

This might not solve you whole problem, but hope it can give you an idea of how you can do it.

Opacity scaler
https://dl.dropboxusercontent.com/u/109921357/Opacity_scaler.capx
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,828

Post » Thu Mar 20, 2014 1:49 am

Thank you very much, this solved me at least, the biggest problem I had. i'll try to solve the rest by myself.
B
13
S
5
Posts: 5
Reputation: 985


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, RobertMKD and 5 guests