Small animation problem

For questions about using Classic.

Post » Wed Mar 04, 2009 3:52 am

I'm having a problem with an animation in my game. Whenever I press to crouch, it doesn't play the full animation. Here's the cap: [url:1prdxu62]http://www.sendspace.com/file/o0tjal[/url:1prdxu62]

Walk is left/right arrow, crouch is down arrow.
B
3
S
1
G
3
Posts: 105
Reputation: 1,312

Post » Wed Mar 04, 2009 6:32 am

Tried like hell to make this work with what you had.
My suggestion would be to work your variables in some other way, they seem to be doing a number on the control scheme the way you had them.

[url:2z6wa1ux]http://www.sendspace.com/file/y0c45y[/url:2z6wa1ux]
B
1
G
4
Posts: 3
Reputation: 1,031

Post » Wed Mar 04, 2009 8:24 am

Here you go:

http://willhostforfood.com/?Action=down ... leid=57458

I changed the animation names just because I didn't want to have to type all that out every time I changed something, but you can change them back so they still use the "& global()" stuff, it works just fine.

It's a little more complex than Euphro's example (uses a private variable), but it's also a little smoother, I think, as you can interrupt walking with ducking, and the ducking animation plays all the way through even if you let go the key. Sorry, Euphro, I didn't look at yours until I finished mine :P. It's a pretty similar method, though (Set animation frame, Play current, etc.).
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Wed Mar 04, 2009 9:43 am

Thanks Deadeye, with a little tweaking of your cap I've got it working just the way I need it. Thank you too Euphronios, I'm sure yours was just as helpful.
B
3
S
1
G
3
Posts: 105
Reputation: 1,312

Post » Mon Jun 15, 2009 10:07 pm

What should the conditions and events look like to play a crouch animation to the end and hold as long as "Move Down" is down? I am lost.

You know what, I figured it out, I had an else switching it back to "Standing" before it got to checking about the "Crouching" so it would only get to one frame of crouching and then switch back to standing and then restart crouching all over again. I have half a mind to delete this post, but maybe another "me" looking for the solution to the same problem will find this helpful.
B
1
G
3
Posts: 5
Reputation: 835


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests