Sprite Movement Issues

Get help using Construct 2

Post » Sun Mar 10, 2013 7:03 pm

Here is a live demo that showcases the sprite animation issues.

DEMO
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Sun Mar 10, 2013 7:08 pm

I figured out your 'not moving' issue. You have the 'ScrollTo' behaviour, but no background to see a visual reference to. The 'stuck' issue is that the background is scrolling, which makes the sprite appear stationary. Here's my quick and dirty 8Dir WITH a background.
SpriteIssues_8dirblackhornet2013-03-10 19:20:40
ImageImageImage
B
67
S
19
G
121
Posts: 3,197
Reputation: 72,881

Post » Sun Mar 10, 2013 7:13 pm

Ah, that makes sense.

Your link requires a login, by the way.

Now to figure out how sprite animation optimization in Construct 2 works. I'm convinced my method of using Wait is not the best way, which is why the sprite sometimes moves right while finishing a 'walk left' animation.
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Sun Mar 10, 2013 7:20 pm

Link fixed.
ImageImageImage
B
67
S
19
G
121
Posts: 3,197
Reputation: 72,881

Post » Sun Mar 10, 2013 7:30 pm

Ugh, I can't open it because you're running an updated beta version that isn't compatible with the latest stable release.

Do you know where I can get the latest beta?
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Sun Mar 10, 2013 7:31 pm

https://www.scirra.com/construct2/releases
ImageImageImage
B
67
S
19
G
121
Posts: 3,197
Reputation: 72,881

Post » Sun Mar 10, 2013 7:40 pm

Thanks. I checked out your version and it works excellent except for the continued looping animation (which I tried to handle using Wait, didn't work out so well).

Do you know how to make the animation stop once movement has stopped?
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,194

Post » Sun Mar 10, 2013 7:41 pm

[QUOTE=Excal]
The issue I have is sometimes the walk-left animation is playing (likely due to a previous "walk left" command) when the character is moving right.[/QUOTE]
That's the issue it resolves. I never said any solution about smooth animations, only to properly determine animations via input.

Basically what it does is specifically limits the sprite from doing the walk-left animation because walk-left is only valid if MIRRORED or BOOLEAN "left" is set to true.

Edit: realised you're using 8dir, my bad.Thndr2013-03-10 19:46:44
B
15
S
4
G
4
Posts: 294
Reputation: 3,225

Post » Sun Mar 10, 2013 7:45 pm

[QUOTE=Excal] Thanks. I checked out your version and it works excellent except for the continued looping animation (which I tried to handle using Wait, didn't work out so well).

Do you know how to make the animation stop once movement has stopped?[/QUOTE] You can loop animations on the properties bar on the left in the animation editor. Just set LOOPING

For platformer, you can do On Platform Stop or invert Is Moving
For 8dir, you can compare speed, or invert Is Moving
B
15
S
4
G
4
Posts: 294
Reputation: 3,225

Post » Sun Mar 10, 2013 7:49 pm

SpriteIssues_8dir-stop
Note: the Right animation is out of sequence. You'll need to shuffle.blackhornet2013-03-10 19:51:16
ImageImageImage
B
67
S
19
G
121
Posts: 3,197
Reputation: 72,881

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Braus, supreme676 and 7 guests