Animation Bug When hitting wall

Discussion and feedback on Construct 2

Post » Mon Aug 20, 2012 4:55 am

Hey guys, I've got a bug driving me crazy here. I just started messing around with construct so forgive me if this is noobish at all.

The problem I am having is that whenever my duder runs into a wall, he keeps moving for a split second afterwards instead of staying stopped when he first hits the wall. This causes a really jittery animation bug because it's going from run to idle to run to idle. Its driving me nuts. Any suggestions?


https://docs.google.com/open?id=0B86L2nz8VOYkOTRlcHA3OFNyblE
B
5
Posts: 26
Reputation: 977

Post » Mon Aug 20, 2012 5:30 pm

Please, use dropbox instead of google docs, when possible.

You'll need to event these situations to avoid the maximum number of exception.

the sandBOX on my signature will drive you to page where have a CAPX, you can download it and ready the events, to see how I handled innumerably situations, and one of them is your walking issue.
ImageImageImageImageImageImage
B
93
S
20
G
12
Posts: 1,213
Reputation: 18,484

Post » Tue Aug 21, 2012 4:06 am

Many thanks, sir!
B
5
Posts: 26
Reputation: 977

Post » Sat Sep 08, 2012 10:21 pm

Been pretty busy lately so I hadn't had a chance to check this out until now, but while this is a pretty awesome/extensive example, it doesn't really solve my problem, since the character never changes animations when running into a wall, he just bounces.
B
5
Posts: 26
Reputation: 977

Post » Sat Sep 08, 2012 10:31 pm

You can try comparing values (system expressions) to make sure your player is completely stopped when next to a wall, like so..

+Player.Platform.Xvelocity > 0
+Has wall to right
-Set X velocity to 0

+Player.Platform.Xvelocity < 0
+Has wall to left
-Set X velocity to 0

Or you can use collision offset instead of "has wall to." Might work, atleast ^^; I forgot how I did it for my games.
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests