How do I Make Enemy with Animation ?

Get help using Construct 2

Post » Mon Mar 24, 2014 7:29 pm

Hello CS2 Users,

I have problem with our School Project.

I have a Enemy (cop) that are moving to Right and Left ( I have make a Sine Behavior for this action)
But now if he moving to the Left and Right the Enemy (cop) not give the good animation ( I have four animations : Left, Right, Right_Stop, Left_Stop)

What i want is when you change the word (Bank) and the cop see you , than the game must restarts.
But when the Cop is moving to Right and you change some word than nothing happens. ( because the cop not see you )
But when the Cop moving to Left and you change a word and the Cop see you than the game restart.

How can I fix this ?
I hope you can help us.

Project_Game.JPG

Level1_Events.JPG


Sorry for my bad English.

Salute,
Sero
You do not have the required permissions to view the files attached to this post.
B
11
S
2
G
1
Posts: 27
Reputation: 692

Post » Mon Mar 24, 2014 8:22 pm

I am not totally sure what it is you are trying to achieve. If you are looking for some way to detect if the cop can see the player or not you can either compare the direction the cop is facing + x,y coordinates or use the Line-Of-Sight behavior.
B
20
S
6
G
4
Posts: 347
Reputation: 4,451

Post » Mon Mar 24, 2014 8:47 pm

cvp wrote:I am not totally sure what it is you are trying to achieve. If you are looking for some way to detect if the cop can see the player or not you can either compare the direction the cop is facing + x,y coordinates or use the Line-Of-Sight behavior.


Hello,

Thanks for you reply.

First what I want is to give the Enemy ( Cop) automatic movement to left en right with the good animation.
I'm now using a Sine Behavior but I can't give the good animation for Left and Right movement.

Salute,
Sero
B
11
S
2
G
1
Posts: 27
Reputation: 692


Return to How do I....?

Who is online

Users browsing this forum: KTML5 and 26 guests