How do I ... vary the enemies shown?

Get help using Construct 2

Post » Fri Nov 07, 2014 4:15 pm

Hi there! I'm in need of some help. I'm trying to make a whack-a-mole inspired game and there are several different "types" of moles with different colors and points for hitting them. I have the system to respond differently to the different enemies when you hit them (Using frames) but I need help varying the enemies shown each time someone plays. I don't want it to be a pattern that they can document for example; first its the pink mole then its the green mole then its the blue mole. Thank you!
B
4
Posts: 16
Reputation: 234

Post » Fri Nov 07, 2014 4:48 pm

set frame to
choose(0,1,2)
B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Post » Fri Nov 07, 2014 10:51 pm

korbaach wrote:set frame to
choose(0,1,2)

Oh thank you so much!
B
4
Posts: 16
Reputation: 234

Post » Fri Nov 07, 2014 11:00 pm

No problemo! :D
...if you need some help... just ask...
B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Post » Sun Nov 09, 2014 10:30 pm

korbaach wrote:No problemo! :D
...if you need some help... just ask...

I actually do have one question! If I decided to do animations instead of frames so the colors could have different animations, would I replace the numbers with the animation names or keep the numbers?
B
4
Posts: 16
Reputation: 234

Post » Mon Nov 10, 2014 4:22 am

Nevermind! I was researching it and you put the quotation marks around the animation's name to do it!
Example: choose("Red","Blue","Pink")
B
4
Posts: 16
Reputation: 234


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 35 guests