about animation

Get help using Construct 2

Post » Mon May 18, 2015 3:40 pm

i made a game and added many animations in my player object and i want that when enemy kills my player then it become ghost and then no enemies can harm my player i have exported ghost animations in my player animation list but how to make ghost enemies undestroyable
B
9
S
4
G
1
Posts: 89
Reputation: 1,498

Post » Mon May 18, 2015 3:43 pm

One way would be adding the condition "animation ghost is not playing" to all events that hurt the player..

Another way would be to put all events related to the player being a ghost and not being a ghost in two groups and setting them activated when needed..
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 5:27 pm

thanks friend you are a big help
B
9
S
4
G
1
Posts: 89
Reputation: 1,498

Post » Tue May 19, 2015 7:55 am

but i want to after 10 seconds it returns to be normal animation what to do in this
B
9
S
4
G
1
Posts: 89
Reputation: 1,498

Post » Tue May 19, 2015 8:04 am

Add timer behaviour to the player..

start the timer for 10 seconds when player becomes ghost

on timer - set player animation to normal..
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 » Tue May 19, 2015 9:09 am

it dosent works it remained to be a ghost
B
9
S
4
G
1
Posts: 89
Reputation: 1,498

Post » Tue May 19, 2015 9:11 am

Are the conditions for the player to be a ghost still true?

Seems like you have conflicting events.
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 » Tue May 19, 2015 9:23 am

so what i do in this
B
9
S
4
G
1
Posts: 89
Reputation: 1,498

Post » Tue May 19, 2015 9:28 am

Make sure there are no conflicting events..

I haven't seen your event-sheet, so I don't know how you have handled setting the player to ghost..
When setting the player back to "normal" you should also make sure the conditions for setting the player to ghost aren't true anymore..
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


Return to How do I....?

Who is online

Users browsing this forum: NN81 and 20 guests