How do I make my enemies spawn randomly?!

Get help using Construct 2

Post » Sat Oct 03, 2015 3:47 am

I really want to know how to make the enemies of my game spawn randomly from the sides (Please look at my .capx project file to understand where the enemies have to spawn). I want to know how can I make the enemy spawn from the 2 sides and to spawn randomly in groups of 2 to 5, and at different times obviously, like the game is a bout you are the character and enemies will spawn from your left and from your right some times in groups and sometimes individualy at random times. I think if you have experience with construct 2 it'll be easy for you to make it so please explain to me what to do. PLEEEAASSEEEE :P :P


Here is the link of the .capx: mediafire.com/download/9j58hcgn58uq0dn/Enemy_Spawn.capx


REALLY PLEASE HELP ME ;)
B
4
Posts: 16
Reputation: 234

Post » Sat Oct 03, 2015 9:46 am

there is a random function so you could do (for spawning on the left of the screen if you layout is 200 down) put create an object (under system) at x=0 y=random(0, 200).

https://www.scirra.com/manual/126/system-expressions
Image keep updated on my new game: Still Human
B
12
S
4
G
1
Posts: 155
Reputation: 1,483

Post » Sat Oct 03, 2015 1:15 pm

Yeah, thanks i never thought about that but HOW CAN I MAKE THEM SPAWN IN GROUPS?!
Please.
And thanx very much for that answer
B
4
Posts: 16
Reputation: 234

Post » Sat Oct 03, 2015 1:30 pm

And dude, your Kniveton Studios logo sucks, lucky for you i am a graphic designer and i can make you a great logo if you download my .capx file and make the enemies spawn randomly from left or right and remember tu put the mirror expresion so the enemy will spawn looking at the side they spawn. And to make them spawn randomly in groups.

Please I promise youll love your new logo.
B
4
Posts: 16
Reputation: 234

Post » Sat Oct 03, 2015 1:47 pm

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Oct 03, 2015 2:07 pm

Do you want me to make you a logo?
B
4
Posts: 16
Reputation: 234

Post » Sat Oct 03, 2015 2:24 pm

davidmpc wrote:Do you want me to make you a logo?


No thanks, I make my own logos..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Oct 03, 2015 3:57 pm

And how can i make that when the enemy is near the player to simulate jumping?!
B
4
Posts: 16
Reputation: 234

Post » Sat Oct 03, 2015 4:01 pm

reload the linked capx..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Oct 03, 2015 4:46 pm

HERE : mediafire.com/download/6nxdszz25y6febk/jump_simulating_and_spawning_in_groups.capx

Please make the enemies jump to the player when they are near to him (the player) and to make the enemies spawn in groups too
B
4
Posts: 16
Reputation: 234

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests