How do I build a Keypad?

Get help using Construct 2

Post » Sun Feb 09, 2014 5:59 pm

Hey! This is my first post, so please be gentle :)

I'm trying to build a numeric keypad that will spawn at different places on my game.

Is there a way I can group the numbers layout with the 10 invisible sprites that I use to detect when each button is touched?

In other words, can I nest sprites within a sprite? I have tried with containers and families but I'm not sure if that's the way to go.

Thanks in advance!

B
4
S
2
Posts: 4
Reputation: 410

Post » Sun Feb 09, 2014 8:34 pm

OK, found it!

I was looking for a way to group sprites, pretty much like Flash does but nesting some inside others.

I was able to do what I needed with the PIN behavior(attaching all the key sprites to a larger keyboard sprite). Not the most intuitive solution but it gets the work done.
B
4
S
2
Posts: 4
Reputation: 410


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 35 guests