Enemy formations in vertical shooter?

For questions about using Classic.

Post » Fri May 13, 2011 8:10 pm

I wonder how to make enemy formations for vertical shooter, for example:

[code:1y3kh2mu]
A)
*
* *
* *

B)
* *
* *
* *
*
[/code:1y3kh2mu]
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Sat May 14, 2011 12:27 am

Can you explain exactly what you want? Setting up formations seems simple to me in the layout editor.. or do you need something else?
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Sat May 14, 2011 1:22 am

Simply look this:



Based on the event sheet that can spawn from outside of screen



This is my currently event
[code:ip5dc2ca]
Every 2000 miliseconds: System create object:enemy_plane on layer 1 at ((random 640), 0)
[/code:ip5dc2ca]

I tried to add sub-events to make set position between x and y to one enemy plane, but didn't work... i had no idea.
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Sat May 14, 2011 1:31 am

Is it a formation like Galaga (once onscreen each enemy is there until destroyed)? or like Nemesis / Gradius / Darius (horizontal I know, but same method will apply) where the formation scrolls onto the screen?
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Sat May 14, 2011 1:38 am

Sin/Cos would be the best way to go, although, you might get away with the path movement.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Sat May 14, 2011 1:40 am

[quote="procrastinator":2s7sc04e]Is it a formation like Galaga (once onscreen each enemy is there until destroyed)? or like Nemesis / Gradius / Darius (horizontal I know, but same method will apply) where the formation scrolls onto the screen?[/quote:2s7sc04e]

Yes, like that. :)


[quote:2s7sc04e]Sin/Cos would be the best way to go, although, you might get away with the path movement.[/quote:2s7sc04e]

Can you link here plz?
B
95
S
25
G
20
Posts: 3,052
Reputation: 22,613

Post » Sat May 14, 2011 1:43 am

Depends on how your engine is.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Sat May 14, 2011 1:48 am

You know there were 2 choices in my reply? :D

Anyway, here's a Galaga type formation which has swooping. It's very old. I fixed a few things so it would work in Construct Classic r1. Ignore the placeholder graphics ;)
http://dl.dropbox.com/u/666574/Invaders ... UPDATE.cap

I was working on a Salamander type test if you want that too.. it's pretty crappy :D
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Sat May 14, 2011 1:51 am

Here's one that would probably suit you if you wanted random but smooth movement..

http://dl.dropbox.com/u/666574/Enemy%20 ... 20CCr1.cap

Click LMB to start an enemy movement on the Y position of your mouse.
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Sat May 14, 2011 2:00 am

OK I knew I did test something along the lines of Gradius a while back, so here's a sample .cap. Updated for Construct Classic r1.

http://dl.dropbox.com/u/666574/Shmuper_ ... UPDATE.cap

Ignore all graphics and code (;p) but you might learn something. Who knows! Hope you find something useful.
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests