image animation rotation on non-player sprite

Get help using Construct 2

Post » Sat Feb 02, 2013 1:51 pm

Help!
I'm new to this and I've spent days trying to get the animated sprite (not actually animated - but showing the sprite facing 4 different directions) to display the correct animation/image depending on what direction it is moving.

I've tried the 8-direction Tutorial - didn't work without the key pressing (which I don't want since it is not player-controlled)
Tried between angles - couldn't get it to work
Tried compare to angle - couldn't get it to work.

What am I doing wrong?

The sprite for the animation (MR) is in a container with, and pinned to the randomly moving sprite (PlayerMR). The MR has 4 different animations: left, right, up, down.

Help!
https://www.dropbox.com/s/yofafnxa91wwbtp/nhf-animate-angle-diretion.capx
30FootForest2013-02-03 13:16:05
B
10
S
3
G
3
Posts: 29
Reputation: 2,692

Post » Sat Feb 02, 2013 2:52 pm


I guess.. just add the corresponding "Set Animation" action right after the action that makes it move?
B
10
S
2
G
3
Posts: 28
Reputation: 2,690

Post » Sun Feb 03, 2013 4:02 am

Tried that too, with no success. I'm assuming I have some wrong setting somewhere. And I've been at this so long I've got a real messy script and no brain left (not that I had much to begin with :o)

Can anyone help me get this working?
I wan the MR sprite to face up, down, left or right depending on whether the randomly moving PlayerMR sprite (both sprites are contained and pinned together) is moving up or down, or a left angle or right angle.

https://www.dropbox.com/s/yofafnxa91wwbtp/nhf-animate-angle-diretion.capx

TIA!
B
10
S
3
G
3
Posts: 29
Reputation: 2,692


Return to How do I....?

Who is online

Users browsing this forum: sekocit and 28 guests