How do I Create specifict attacks from bosses as example?

Get help using Construct 2

Post » Mon May 30, 2016 4:08 pm

Lets say I have a boss that is supposed to shoot stuff from the sky, in a specifict pattern?


Currently I have all sprites above the window size that activates after X happens, so they fall down.

In my opinion this is not optimal since it takes up so much space in the game (Fill with sprites everywhere and it can only be launched once).

This is how it looks right now (with sprites above window size)


(All these are with the bullet behavior that activates after a few seconds) and that's it, then their gone
Image


Is there a way to spawns these on command instead of just having them falldown, and maybe being able to spawn multiple times?

I know about the random behavior, (spawn at random) but that is not what I want, I need to have them spawn in a specifict pattern.

Is that possible or should I just keep have them like this??
B
21
S
9
G
8
Posts: 188
Reputation: 6,069

Post » Mon May 30, 2016 5:10 pm

Search manual for Loops and loopindex

loopindex
Get the index (number of repeats so far) in any currently running loop.


repeatPAT.capx

this can also be accomplished with nested loops ..but for now...
Image
B
65
S
23
G
7
Posts: 1,502
Reputation: 10,890

Post » Mon May 30, 2016 6:28 pm

korbaach wrote:Search manual for Loops and loopindex

loopindex
Get the index (number of repeats so far) in any currently running loop.


repeatPAT.capx

this can also be accomplished with nested loops ..but for now...


Thats really nice, thank you so much, will definitely learn a lot from this, didn't knew about loops,
B
21
S
9
G
8
Posts: 188
Reputation: 6,069


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], nahima and 5 guests