Button: force Z order to bottom in preview

Discussion and feedback on Construct 2

Post » Wed Mar 09, 2016 1:41 am

Hi

My project has SpriteFont+ that is above the buttons Z-order and layer order .
In preview or debug mode the buttons render on top of everything blocking the (SpriteFont+,text). :x

Is there a way to force SpriteFont+ to show up above the buttons?

Thanks
B
24
S
8
Posts: 46
Reputation: 1,894

Post » Wed Mar 09, 2016 3:17 am

Hi all

Can find a way around the button z-order issue.

Instead, I am going to use sprite animation frames as buttons and set the as I touch them as found in the forum.
The plugin SpriteButton by coatesjetset does not work with mobile :(
viewtopic.php?t=88607&start=0

If anyone has a solution to the button z-order issue, please post as I would be interested to know.

bye
B
24
S
8
Posts: 46
Reputation: 1,894

Post » Wed Mar 09, 2016 5:13 am

From the manual:
Form controls are actual HTML elements floating above the game canvas in the HTML page. Therefore, nothing can be displayed on top of a form control, apart from other form controls.

Any sprite can be a button. Just use "On touched object" (for Touch object).
ImageImageImage
B
71
S
22
G
259
Posts: 3,794
Reputation: 143,704

Post » Wed Mar 09, 2016 10:01 am

Thank for the information.

This will come in very useful when planning a project.
B
24
S
8
Posts: 46
Reputation: 1,894


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 12 guests