Sprite moving right is OK, but moving left is not.

Post your own tutorials, guides and demos.

Post » Sat Jan 10, 2009 5:01 pm

I've got a sprite set up for 8 directional movement. If you move right, the sprite is the right way up. Moving left, however, flips the sprite vertically.

I suspect this is due to my current lack of understanding of how Construct works, rather than a bug.

Thanks.
B
2
S
2
G
3
Posts: 158
Reputation: 1,566

Post » Sat Jan 10, 2009 5:04 pm

Yes, the behavior will try to rotate the object to the direction you turn. You should add a new animation angle for 'left' so it'll display it how you want to.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Sat Jan 10, 2009 5:05 pm

I'll give that a try, thanks!

"Auto mirror" appears to do a bit of what I want, but I'm not sure if that's what you meant...
B
2
S
2
G
3
Posts: 158
Reputation: 1,566

Post » Sat Jan 10, 2009 7:17 pm

He meant this:



If you define the angles you want in the animator, Construct will use those angles rather than rotating the sprite around :)

But yeah, mirror works too if you just want it to go back and forth.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sat Jan 10, 2009 7:36 pm

Ah, I'll take a look at that. Thanks for pointing it out!

Looks rather useful. It'd be nice if I could drag and drop an existing frame to another angle though.
B
2
S
2
G
3
Posts: 158
Reputation: 1,566

Post » Sat Jan 10, 2009 9:04 pm

Select a frame (or a series of frames) in one angle, and hit "c"

Then select another angle, click in the frames section, and hit "v"

I don't know why it's not Ctrl-C and Ctrl-V though :/
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests