[Example] Sprite resizable button with 9patch

Show us your completed creations made in Construct 2

Post » Sat Sep 28, 2013 4:22 pm

Hi guys,

I was playing to find a simple way to create sprite buttons with the 9patch and ive got a demo up and running. You actually can resize it any size and the label will fellow. You can put any instance if you wish you just have to use the ID to identify them. (Or you could use their UID whatever). The idea was to be able to use button of any size without changing a single thing! (9patch was really useful here! thankis to Scirra for this)

This enable you to make sprites button with 3 states: Normal, Clicked, Over (Active). You actually just have to include the events sheet in your stuff and put 'Button' object on your screen. That is the main object needed to create a button. I make use of containers.

You can get the example here.

Enjoy! :)Rushino2013-09-28 16:24:43
Posts: 190
Reputation: 2,489

Post » Tue Dec 31, 2013 11:59 am

thankyou for this example but when i try to make many buttons and i make it no space between button it cause bug like this

screenshot : dropbox.com/sh/ormbajuyjfpcx2m/Sr6dxdhkZL

hover mouse on the buttons and it do like that
when i click some button its happen to all buttons

help please :)

EDIT: if i place picture on the button when i move mouse over button
picture is disspear!

EDIT: ok i fix a picture disspear now just use move to top layer antidust2013-12-31 12:36:55
Posts: 1
Reputation: 177

Return to Completed Creations

Who is online

Users browsing this forum: Google [Bot] and 0 guests