Object Consolidation

Get help using Construct 2

Post » Thu May 03, 2012 6:10 pm

Hello.

I watched tutorials about creating simple shooting game, and one of the layers was called HUD, that keep score text always on top-left corner.

But now I want to consolidate my left, right and jump buttons in the left-bottom corner of the browser. The problem is that I don't know how to do this when the browser windows resizes. I mean if I begin to increase the height of the browser, my buttons remain in the same place.
How do I fix it? Thanks!
B
13
S
2
G
3
Posts: 24
Reputation: 2,812

Post » Thu May 03, 2012 6:35 pm

Well, guys, I fixed it.

If somebody needs the explanation:
I created an event that says: every tick set position for <your_sprite> to for X - <your_sprite>.ImageWidth + 10; for Y - WindowHeight - <your_sprite>.ImageHeight - 10.

There was also an idea to resise the element depending on window size, but I think it's not useful, just because your finges won't become smaller while window size becomes smaller :)

Have fun!
B
13
S
2
G
3
Posts: 24
Reputation: 2,812

Post » Thu May 03, 2012 7:05 pm

This is what the anchor behavior is for, but hey, whatever works :)
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Thu May 03, 2012 7:09 pm

Oh, WOW! Thank you :)
B
13
S
2
G
3
Posts: 24
Reputation: 2,812


Return to How do I....?

Who is online

Users browsing this forum: mercuryus, mystazsea and 17 guests