Help with zombie type game.

Get help using Construct 2

Post » Wed Jan 04, 2012 9:34 pm

Hi guys! So, I'm kinda new here, and I have some questions that I couldn't find in the forum, so here you go:

1-How can I make the guy to shoot only one bullet per second? With me, he shoots like 132148090 bullets.
2-How can I "make" health to the character and the zombie and how can I make the zombie attack me when he gets close?
3-How can I make the zombie to respawn after I kill the other? Like, I kill one and the another shows up, or another 10, xD.
Last (I guess, xD): How can I make a scorebar and add points to every zombie I kill?

Thank you very much and sorry my bad english! ;)
B
4
G
1
Posts: 16
Reputation: 607

Post » Wed Jan 04, 2012 9:38 pm

This variables ar needed:

firing delay:12
firing state:0

on mosue button down
if firing state <= 0
:
set firing state to firing delay
And fire bullet

--
Also:

always:
firing state = firingstate-1


Or reverse, buit this solution is better.
It provides direct firing when having long firing delay and just tapping the mouse,

Urled2012-01-04 21:40:11
B
18
S
4
G
1
Posts: 413
Reputation: 2,512

Post » Wed Jan 04, 2012 10:03 pm

@Cookies1304: You should also follow the Beginner's guide to Construct 2 that covers most of your questions and then take a look at the how do I FAQ which also contains quite a few articles concerning your very same questions.

If you're still stuck, don't hesitate to post.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Wed Jan 04, 2012 10:12 pm

Thanks guys! You helped a lot! :D
B
4
G
1
Posts: 16
Reputation: 607

Post » Wed Jan 04, 2012 10:35 pm

[QUOTE=Urled] This variables ar needed:

firing delay:12
firing state:0

on mosue button down
if firing state <= 0
:
set firing state to firing delay
And fire bullet

--
Also:

always:
firing state = firingstate-1


Or reverse, buit this solution is better.
It provides direct firing when having long firing delay and just tapping the mouse,

[/QUOTE]

Thanks but, where can I do that? Where in the event sheet? :)
B
4
G
1
Posts: 16
Reputation: 607

Post » Wed Jan 04, 2012 10:38 pm

Just do
[code]Keyboard: Space is down
System: Every 1.0 seconds
-> TheGuy: spawn bullet[/code]

Or with Mouse: Left button is down
Same ideaYann2012-01-04 22:39:15
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Wed Jan 04, 2012 10:52 pm

The FAQ covers all of your questions.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed Jan 04, 2012 11:03 pm

[QUOTE=Yann] Just do
[code]Keyboard: Space is down
System: Every 1.0 seconds
-> TheGuy: spawn bullet[/code]

Or with Mouse: Left button is down
Same idea[/QUOTE] No, it's not.
That solution is not an acceptable solution,.
B
18
S
4
G
1
Posts: 413
Reputation: 2,512

Post » Wed Jan 04, 2012 11:05 pm

[QUOTE=Yann] Just do
[code]Keyboard: Space is down
System: Every 1.0 seconds
-> TheGuy: spawn bullet[/code]

Or with Mouse: Left button is down
Same idea[/QUOTE]

Thx! It worked.

Now, last question: How can I make the zombie when CLOSE (Colliding) subtract ONLY 10 of my health and ONLY one in one second, cuz in the Ghost Shooter it just teaches how to make the player get destroyed. Thxxx!
B
4
G
1
Posts: 16
Reputation: 607

Post » Wed Jan 04, 2012 11:36 pm

[QUOTE=Urled] That solution is not an acceptable solution,.[/QUOTE]

@Urled: how so ?
Please explain yourself.
As far as I'm aware, this is a perfectly well-fit solution to use in C2.

Edit: and for @Cookies1304: the beginner's guide also teach how to remove health from the monsters. Simply apply the same process to your player, and time it like Yann showed you.Kyatric2012-01-04 23:50:53
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Next

Return to How do I....?

Who is online

Users browsing this forum: michaelverdi and 29 guests