[Resolved] How do I slide my view when i click on sprite ?

Get help using Construct 2

Post » Thu Mar 24, 2016 12:04 am

If i understand you, we can't do want i'm asking because the size of camera isn't same, if is that, can we scroll like i ask, but with the same size, i'll change my backgroudn later if it's a problem.
B
10
S
4
G
2
Posts: 47
Reputation: 1,894

Post » Thu Mar 24, 2016 12:06 am

Sorry, I got confused (wasn't sure if you had wanted the screen size to change) but I can make you a working example regardless.
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
51
S
24
G
30
Posts: 534
Reputation: 19,620

Post » Thu Mar 24, 2016 12:11 am

If you can change size of view when we click on the button is perfect, but if you can't and you must to keep principal size isn't probleme, i'll extend my background

But if you have an example i can see if it's correct for me.
B
10
S
4
G
2
Posts: 47
Reputation: 1,894

Post » Thu Mar 24, 2016 12:18 am

The limitations are something you don't have to strictly follow at all but it's because different devices have different aspect ratios, and if your layout isn't the correct size, it may not display correctly on certain devices. It's just good policy to make sure it does. Aspect ratios:

3:2 or 2:3 --- iOs and Android
4:3 or 3:4 --- iOs and Android
5:3 or 3:5 --- Android
16:9 or 9:16 --- iOS and Android
16:10 or 10:16 --- Android
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
51
S
24
G
30
Posts: 534
Reputation: 19,620

Post » Thu Mar 24, 2016 12:20 am

Edit, I meant screensize, my bad
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
51
S
24
G
30
Posts: 534
Reputation: 19,620

Post » Thu Mar 24, 2016 12:24 am

My windows size is : 1024,1280 4:5 no ?..
B
10
S
4
G
2
Posts: 47
Reputation: 1,894

Post » Thu Mar 24, 2016 12:27 am

If you're intending to be testing on a mobile device, no (I'll send you a PM about that stuff, if you want to fix windowsize to support all mobile devices) but for now, I'll just get to working on that example for you.
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
51
S
24
G
30
Posts: 534
Reputation: 19,620

Post » Thu Mar 24, 2016 12:29 am

With my resolution, isn't support all mobile devices ?

Didn't know that..
B
10
S
4
G
2
Posts: 47
Reputation: 1,894

Post » Thu Mar 24, 2016 12:45 am

This should work regardless of any window size:
https://dl.dropboxusercontent.com/u/589 ... ttons.capx
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
51
S
24
G
30
Posts: 534
Reputation: 19,620

Post » Thu Mar 24, 2016 12:49 am

Nice, u did a perfect job, i'll replace this little blue square by a cross in top right, but isn't problem i think, thanks you for everything !
B
10
S
4
G
2
Posts: 47
Reputation: 1,894

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: Blendi1223, gskunk, richcoz81, tarek2 and 41 guests