How do I make 2 monster run and combat with each others

Just started using Construct 2? Post your questions here

Post » Sat May 09, 2015 10:43 am

Hi, i'm new here.

I have a problem in logic event, i don't know to make 2 monster A and B run and combat. :roll:

Can u help me? Please :(
nothing
B
12
S
4
G
1
Posts: 17
Reputation: 913

Post » Sat May 09, 2015 3:04 pm

I think we need more information before this question can be answered.

Is this game top-view or side view?
What kind of behaviour are you using for the monsters?
Is one of the monsters controlled by the player or are both computer-controlled?
What are the conditions in which the monsters will fight?
Does the combat consist of animations?
Will who wins the combat be dependent on certain factors?

And there will probably a lot more questions..
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 May 09, 2015 4:19 pm

Dear,
Thanks for you reply! Here is you information:

1/ My intent like Tower Defense => How you call it? - In think it top-view.
2/ The monsters i have add 8 direction, and bound to layout (to check when they meet).
3/ no monster in my control, i just tap to spawns it and then he come to target.
4/ bound to layout (to check when they meet but it fight one :( ).
5/ Yes it does
6/ If A monster come to castle A => B win, and monster A come to castle B => A win.

thanks for your help :)
nothing
B
12
S
4
G
1
Posts: 17
Reputation: 913

Post » Sun May 10, 2015 12:48 pm

I'm sorry the question is still not very clear to me..

When tapped a monster appears - this should be simple
on tap - create monster at touch.x,touch.y

I'm not sure what you think the bound to layout behaviour will do..

How should the monster decide to which castle it goes?
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 » Sun May 10, 2015 2:15 pm

Like plants vs zombie :)
Plants fire and zombie run to eat.
what behaviors LittleStain @_@
nothing
B
12
S
4
G
1
Posts: 17
Reputation: 913

Post » Sun May 10, 2015 2:38 pm

I guess you'd just want something like this:

system every tick - monster 8 direction simulate pressing left.

monster on collision with "whatever" - monster play attack animation

monster on finished attack animation - "whatever" destroy

If you want more complex movement and/or other ways to control the monsters you'd need extra conditions.
You might also want to look at the line of sight behaviour and pathfinding.
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 » Mon May 11, 2015 2:35 pm

oh, thank for all :)
i try my best now
nothing
B
12
S
4
G
1
Posts: 17
Reputation: 913

Post » Mon May 18, 2015 11:52 am

Hi there!

I have new problems, my monsters combat each-other, I can show them who is target, who is friend :(

Can u help me again :(
nothing
B
12
S
4
G
1
Posts: 17
Reputation: 913

Post » Mon May 18, 2015 1:21 pm

I'm not sure I understand the question..

Your monster attacks a monster?
What events are you using?
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 » Mon May 18, 2015 2:00 pm

uhm :)
sorry about my bad english!

I created 3 monsters (in team A) in line combat with 1 monsters in team B. But A team come near by and hit each others. I control monster by using variable: team.

my condition:
monsters => collision with any monsters | monsters play "atk" animation.

My wish: monster => collision with monster in different team | monsters play "atk" to monster in different team.

how can i solve this problem?

thanks for your help
nothing
B
12
S
4
G
1
Posts: 17
Reputation: 913

Next

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest