LOS movement problem

Get help using Construct 2

Post » Sat Feb 27, 2016 1:47 pm

Each snake have Line of sight behavior
when snake movement is on specific direction his animation change (see more on attached capx)
So when snake spotted player he run to his direction

but when two snakes spotted player
second snake have this same animation
So all snakes have this same animation direction even if he moves on other directions

This happen on all animations

https://dl.dropboxusercontent.com/u/447 ... ement.capx
B
111
S
28
G
48
Posts: 1,882
Reputation: 36,428

Post » Sun Feb 28, 2016 11:39 pm

Try using the Event "For Each" in system and select the object Snake. So when your Events are triggered it changes the animation "For Each" separate snake.
My question, for your ship game, what behavior did you use for enemy ships? And how did you make them shoot at you?
I don't think I could ever stab someone, I mean, let's be honest. I can barely get the straw into a Capri Sun.
B
26
S
10
G
7
Posts: 91
Reputation: 6,420

Post » Mon Feb 29, 2016 3:29 pm

@Potato23 that works,
on Oi, Pirate! game i use sprite, when player is overlapping sprite every few seconds oponent ship shoot

add sprite to container with oponents ship and set position to right side os ship
B
111
S
28
G
48
Posts: 1,882
Reputation: 36,428

Post » Mon Feb 29, 2016 5:02 pm

Never would of thought of that! Thx What behavior did you use for movement?
I don't think I could ever stab someone, I mean, let's be honest. I can barely get the straw into a Capri Sun.
B
26
S
10
G
7
Posts: 91
Reputation: 6,420


Return to How do I....?

Who is online

Users browsing this forum: tannerdler and 23 guests