Animation Sprite switching all the time

Get help using Construct 2

Post » Fri Mar 29, 2013 9:00 pm

Hi, my name is Marcell and this is my first post here at this forum. I'm also from Brazil and is my first time working with Constructor, so my questions might be a little noob.

I uploaded an video so you can understand better my problem.

---> http://youtu.be/pNIR_nipPhw

I don't know what I did wrong, I was following the https://www.scirra.com/tutorials/253/how-to-make-a-platform-game/page-6 tutorial.

Here are the screenshot of my animations and my events.

Events ---> http://i.imgur.com/btNswwe.png
Sprite Animations ---> http://i.imgur.com/IfHmTNt.png

The animation Idle has only one frame, which is of the player doing nothing.

I hope somebody here can help me. Thanks in advance!

B
16
S
4
G
4
Posts: 56
Reputation: 2,942

Post » Fri Mar 29, 2013 9:24 pm

Looks like your animation is larger than the PlayerBox, so the positioning is off. I bet if you make the PlayerBox visible, it will become self evident what the problem is.
ImageImageImage
B
67
S
19
G
123
Posts: 3,211
Reputation: 73,909

Post » Sat Mar 30, 2013 3:54 pm

Thanks! I will try solve this doing what you said.

But my major problem is the animation switching alone. You see the player is moving his feet all the time. How I can stop that?
B
16
S
4
G
4
Posts: 56
Reputation: 2,942

Post » Sat Mar 30, 2013 5:16 pm

@almeidamarcell Your event sheet has a piece that says on ANY animation finished play walking. That means that when your one frame idle animation finishes that first frame, the walking animation starts to play again.
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,428

Post » Mon Apr 01, 2013 4:26 pm

Thank you for helping me! I solved this problem.

But I got another problem with the sprite animation. I made a new video, so maybe you can help me out.

You can see I have two different enemys(in black) one is moving pretty fast, but his animation is just fine. The other one is a bit slower but his animation is kind stuck. I imagine when I reduce the max speed, acceleration and deceleration I have to make some calculation to also reduce the frame speed, but I don't know how. I tried many different combinations and the enemy still kind stuck.

http://www.youtube.com/watch?v=FFkD7alx1xc

Edit: If you prefer, I uploaded the game here: http://www.almeidamarcell.com/indiegames/cesupa-game/index.html

On this video I 'played' the game twice because I was also testing an collision problem. But I created an different thread for that! (http://www.scirra.com/forum/topic65756_post403436.html#403436)

Here is an screenshot of how I setup my enemy animations. http://i.imgur.com/TkRelO4

He is not black on the screenshot because I used blend to make his black on the game, the sprite is the same as the player.

Thanks in advance again! almeidamarcell2013-04-01 16:59:14
B
16
S
4
G
4
Posts: 56
Reputation: 2,942

Post » Mon Apr 01, 2013 7:10 pm

it would be easier to help if you would post the capx file to dropbox so we can take a look at it. It will go much more quickly than trying to figure it out based on video, etc...
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,428

Post » Tue Apr 02, 2013 2:38 am

That's true, I'm sorry about that. Here is the .capx file. Thank you for helping!

https://www.dropbox.com/s/ghqu5a0fr1iao56/platatform-gam.capx
B
16
S
4
G
4
Posts: 56
Reputation: 2,942


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests