Moving same two objects along side after collision

For questions about using Classic.

Post » Thu Jul 07, 2011 7:09 pm

I have two (or more) instances of sprite "enemy" (Family "enemies" as well) who wander on the layout in random directions.
If they are in specific distance to the player they start pursuit. It works great but if more then one "enemy" is chasing player they start to overlap each other..
I've been trying many comparisions and overlap/collision tests but none of them really work :/

one more thing, i could easly to that using RTS behavior but
1. it gives me to many problems and crashes(every enemy is made of a container with few sprites and different families)
2. I would like to make that kind of behavior by events to learn some more and understand how this can be achived
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Thu Jul 07, 2011 7:15 pm

Custome Movement beh
if Enemy overlaps Enemy: push out Enemy oposite direction

work for me :)The_Funny_Guy2011-07-07 19:15:41
B
16
S
5
G
4
Posts: 211
Reputation: 3,767

Post » Thu Jul 07, 2011 7:22 pm

yes, but thats allready made behavior :)
[quote=]2. I would like to make that kind of behavior by events to learn some more and understand how this can be achived[/quote]

:)
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Thu Jul 07, 2011 7:30 pm

oh sorry
B
16
S
5
G
4
Posts: 211
Reputation: 3,767

Post » Thu Jul 07, 2011 7:36 pm

no worries, actually i'll never used custom movement so i can play with that for now :)
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests