How do I add animation after changing sprites

Just started using Construct 2? Post your questions here

Post » Tue Dec 27, 2016 6:45 pm

Hello Construct 2 community,

I am just getting started so hopefully someone can help me out.

I went through the beginners tutorial and am currently working on trying to improve the tutorial top down shooter game.

I added "power ups" that change the sprite to various versions holding different weapons: flashlight is base, then there is knife, gun, shotgun and rifle. and these are set as animation frames 0-4.

Now I am trying to add a different animation for knife combat, so that when mouse right si pressed instead of shooting bullets like it normally does it will now use the knife swinging animation which I have on frame 5 of the player sprite.

Thank you for your time.
B
4
S
1
Posts: 3
Reputation: 306

Post » Tue Dec 27, 2016 6:49 pm

Image
B
4
S
1
Posts: 3
Reputation: 306

Post » Wed Dec 28, 2016 9:44 pm

There isn't enough information about how your game is set up. If it were me I would make a new animation for the knife attacks and switch to that.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Thu Dec 29, 2016 12:58 am

So put it to a separate sprite and just spawn object and delete old player?

Let me know what else is needed, information wise.

Its mostly the tutorial top shooter with slightly changed stuff in the screenshot.
B
4
S
1
Posts: 3
Reputation: 306

Post » Sun Jan 01, 2017 3:16 pm

Image

Right click on that window and choose "add animation". Then when you attack with the knife, change the animation, then have the animation change back to the gun once the knife animation has finished playing.
B
13
S
7
G
2
Posts: 65
Reputation: 2,307


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest