How do I make a button does the same in different layouts

Get help using Construct 2

Post » Tue Mar 31, 2015 7:24 pm

Hi
I would liek to have an in app purchase button that will open a layer with a dialog to make an inapp purchase
i know how to do this for one layout

but if i use many layouts and would like to have that button (calling that pop up) is there a way to do this without copying the pop up to all the layouts ? and without creating the same event of touch-->button--> layouts between the event sheets ?

Thanks
B
8
S
2
Posts: 130
Reputation: 970

Post » Tue Mar 31, 2015 8:39 pm

If I understand correctly all you need is a global layer for the popup and one event sheet just for in app purchases. Just include the IAP event sheet in the other event sheets you need that functionality.

I hope this helps.
https://www.scirra.com/manual/85/layers
https://www.scirra.com/manual/82/includes
Be sure to check out my Metroidvania game, A Hole in the Earth
B
59
S
24
G
3
Posts: 359
Reputation: 5,683

Post » Wed Apr 01, 2015 6:30 am

thanks!
B
8
S
2
Posts: 130
Reputation: 970


Return to How do I....?

Who is online

Users browsing this forum: andersonaraujodl, Carlafnt, LaurenceBedford, teha and 1 guest