Diagonal 8-Direction Animation

Get help using Construct 2

Post » Tue Mar 25, 2014 9:49 pm

Image

When I walk diagonally, the animation only plays the first frame. How do I fix this?
B
11
S
4
G
3
Posts: 210
Reputation: 5,318

Post » Tue Mar 25, 2014 10:34 pm

You may need to put a clause in with your Up Down Left Right that states When Up Arrow is down, and Left Arrow is not down, and Right Arrow is not Down. As I fear it may be conflicting with the Up and Right and just plain Up.
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Wed Mar 26, 2014 1:37 am

emoaeden wrote:You may need to put a clause in with your Up Down Left Right that states When Up Arrow is down, and Left Arrow is not down, and Right Arrow is not Down. As I fear it may be conflicting with the Up and Right and just plain Up.


How do I state "Arrow Key is not down" in an else clause? Is it "Trigger once when true"?
B
11
S
4
G
3
Posts: 210
Reputation: 5,318

Post » Wed Mar 26, 2014 2:29 am

Just put the Arrow key is down, right click and choose invert
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Wed Mar 26, 2014 5:30 am

emoaeden wrote:Just put the Arrow key is down, right click and choose invert


I didn't know about invert, thank you. It worked!
B
11
S
4
G
3
Posts: 210
Reputation: 5,318

Post » Wed Mar 26, 2014 8:30 am

Don't you think using the angle property may be more accurate ?

if sprite.angle == 90 then play "walk_right" animation ?
B
8
S
4
Posts: 131
Reputation: 1,205

Post » Wed Mar 26, 2014 2:05 pm

c13303 wrote:Don't you think using the angle property may be more accurate ?

if sprite.angle == 90 then play "walk_right" animation ?


Maybe. The way I have the walking set up seems fairly accurate right now.
B
11
S
4
G
3
Posts: 210
Reputation: 5,318


Return to How do I....?

Who is online

Users browsing this forum: Huemerson, ultrafop and 13 guests