Request: When sprite is x distance from another

Discussion and feedback on Construct 2

Post » Mon Oct 10, 2011 4:59 am

i think ash is telling you that you can create 'one' event that includes all the conditions you have listed, because they all create one desired effect.
B
52
S
17
G
15
Posts: 1,029
Reputation: 26,339

Post » Mon Oct 10, 2011 10:31 am

Ahh nice.

I put them all into one condition as it worked exactly the same.

awesome.
B
21
S
5
G
2
Posts: 26
Reputation: 2,512

Post » Sun Jan 01, 2012 8:47 pm

What about checking distance between 2 or more instances of the same object.
I have 3 instances of the same object moving around the screen with foreach.
How can I check distance between 2 of them?
I want to make them change direction if they're going to bump to each other.
B
20
S
5
G
5
Posts: 37
Reputation: 4,072

Post » Mon Jan 02, 2012 3:02 pm

Hi there, If you want a tower defense game then I guess all you need is the combination of these plugins:
-Turret Behavior
-Pathfinder

Use the Turret behavior for your towers and the pathfinder behavior for your creeps/monsters.

The plugins are easy to implement, you'll just have to read to their documentation/tutorial to get it going :)
B
5
G
1
Posts: 1
Reputation: 777

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 14 guests