How do I fix my animations

Get help using Construct 2

Post » Wed Sep 30, 2015 12:35 am

Hi,

I have my animations set the following way:
-When 8 direction is moving:
Player at 0 degrees, animation to right
Player at 90 degress, animation to down
Etc

But if the player is touching a wall, then the animations don't change. Here is a video of the issue:

https://youtu.be/mRqSGUHPJUY

What am I doing wrong?
B
25
S
8
Posts: 84
Reputation: 1,697

Post » Wed Sep 30, 2015 9:51 am

I'm not sure what you mean by "Player at 0 degrees"

Are you comparing : Player.8Direction.MovingAngle ?
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 » Thu Oct 01, 2015 4:34 am

LittleStain wrote:I'm not sure what you mean by "Player at 0 degrees"

Are you comparing : Player.8Direction.MovingAngle ?


Hi!,

Here is a video of my event sheet. I don't know how to put pictures here :(

https://www.youtube.com/watch?v=YFRITC3 ... e=youtu.be
B
25
S
8
Posts: 84
Reputation: 1,697

Post » Thu Oct 01, 2015 6:07 am

why not just set your animation on key press ?

if key down pressed set animation down
if key right pressed set animation right
etc

?
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Thu Oct 01, 2015 6:29 am

RamPackWobble wrote:why not just set your animation on key press ?

if key down pressed set animation down
if key right pressed set animation right
etc

?

I tried that, but if I'm pressing up, and then press right withou letting go up, the player would move up, but the animation would be facing right, and it looks worse than my current situation :cry:
B
25
S
8
Posts: 84
Reputation: 1,697

Post » Thu Oct 01, 2015 7:40 am

:oops: ok, didn't think of that

can you change your angle so instead of within 0 degrees of required you change it to within 10 degrees ?

I will try to have a play and see if I can come up with something... not done much with 8 direction
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,832

Post » Thu Oct 01, 2015 8:18 am

Like I said..

If you use Player.8direction.movingangle it should work..

system is within angle : Player.8direction.movingangle is within 5 of 90 - play animation "down"
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 » Sat Oct 03, 2015 12:07 am

LittleStain wrote:Like I said..

If you use Player.8direction.movingangle it should work..

system is within angle : Player.8direction.movingangle is within 5 of 90 - play animation "down"


But it doesn't... can you take a look at my event sheet and tell me if there is something wrong, here it is

https://www.youtube.com/watch?v=YFRITC3 ... e=youtu.be
B
25
S
8
Posts: 84
Reputation: 1,697

Post » Sat Oct 03, 2015 5:32 am

It only happens when you're against a wall? Could be your 8-Direction object isn't able to rotate because the corners of it's collision polygon are snagging. Try using LittleStain's suggestion of using the moveangle instead of the object angle, but also turn off Rotate Object in your 8-Direction behavior's properties.
B
35
S
9
G
4
Posts: 201
Reputation: 5,170

Post » Sat Oct 03, 2015 6:17 am

LittleStain wrote:Like I said..

If you use Player.8direction.movingangle it should work..

system is within angle : Player.8direction.movingangle is within 5 of 90 - play animation "down"


This was totally the solution. Thank you man, and sorry I didn't understand earlier.
B
25
S
8
Posts: 84
Reputation: 1,697


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests