Hide objects like in whack a mole games

Get help using Construct 2

Post » Thu Jul 11, 2013 5:13 pm

I was wondering how objects are hidden in this game: http://www.topfreegame.com/game/smack-it

When the mole appears it's body is incomplete and then it goes up and show it's body. How do you acomplish that?
B
34
S
4
G
5
Posts: 84
Reputation: 4,835

Post » Thu Jul 11, 2013 5:33 pm

Hi skyhunter93,

One approach:
-Make 2 layers. The top layer should have a TileBackground object with transparent holes. The bottom layer should be your moles.
-Use events to randomly pop up the moles.

EDIT: Nvm, I tried testing this out, doesn't work!MadMan2013-07-11 17:57:38
B
11
S
4
G
2
Posts: 20
Reputation: 1,412

Post » Thu Jul 11, 2013 7:25 pm

I imagine it's done with masking and careful Z ordering. Something like this:

Demo
Capx

I hope this helps.
B
58
S
17
G
8
Posts: 341
Reputation: 11,855

Post » Thu Jul 11, 2013 10:01 pm

Wow, thanks both of you! I really like this forums :D
B
34
S
4
G
5
Posts: 84
Reputation: 4,835


Return to How do I....?

Who is online

Users browsing this forum: mekonbekon, ultrafop and 3 guests