About anchor

Get help using Construct 2

Post » Fri Sep 09, 2016 10:31 am

Fix it, thanks :D
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Fri Sep 09, 2016 3:23 pm

I don't do private help, sorry

EDIT: did not see the last post, glad you fixed it
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
54
S
22
G
18
Posts: 2,123
Reputation: 17,150

Post » Fri Sep 09, 2016 3:29 pm

Sorry to bother you, but you can look at my capx and tell me how to put the sprite "play" as is, but with viewport. Thank you

https://www.dropbox.com/s/mt92rduq2ohyy1z/test.capx
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Fri Sep 09, 2016 4:23 pm

I made it so the buttons are at the center of the pictures (I also applied the maths for the 4 zones so you don't have to bother too much with it), I added an instance variable to differentiate the buttons, and changed the origin point of the button to center this time (since we want them to be centered), you can try to tweak it if you want.

Also got rid of the anchor behavior as we do it manually

https://1drv.ms/u/s!AjkoCSebIn9JiXVidZ7-v2U5YiJ8

Also, ViewportLeft(416) (or whatever number it was) means nothing, the number is the one of the layer, or the name of the layer, since there is only one, I used 0 to reference it as you must reference the layer needed.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
54
S
22
G
18
Posts: 2,123
Reputation: 17,150

Post » Sat Sep 10, 2016 9:13 am

Thank you very much for helping :D
B
13
S
2
Posts: 297
Reputation: 1,717

Post » Sat Sep 10, 2016 10:06 am

Aphrodite That's one way of do in it
B
257
S
43
G
15
Posts: 1,992
Reputation: 41,535

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 32 guests