Climbing animation problem

For questions about using Classic.

Post » Wed Sep 22, 2010 3:07 pm

Hi Guys,

I'm new to Construct. I successfully went through the basic Ghost Shooter tutorial. Then I switched to the Crazy Robbie Platform tutorial and I got stuck with the climbing animation. I created the platforms and the ladder. The sprite has the Platform behavior applied. I can move Robbie left and right with 4 frame animation. I added 2 frame animation for Climbing and created a proper Event for it (just as the tutorial depicts). Now I can climb the ladder up and down, but only first frame of the animation is played.

If I load the cap file assiciated with the tutorial itself everyting is ok.

If I change the action in "Walking" to "Climbing" (in Left/Right event) I can see 2 frame animation. So I think the animation itself is ok. It just doesn't seem to play in Climbing event.

I'm struggling with it for an hour or so.... where's the problem?
B
15
S
3
G
3
Posts: 5
Reputation: 1,974

Post » Wed Sep 22, 2010 4:50 pm

I didn't read the Platform tutorial but I suggest you to read the topic below:
viewtopic.php?f=3&t=7339
B
2
G
2
Posts: 31
Reputation: 712

Post » Wed Sep 22, 2010 7:18 pm

Have you got the climbing animation looping correctly? At the right speed?
B
9
S
2
G
4
Posts: 346
Reputation: 2,726

Post » Wed Sep 22, 2010 8:49 pm

Nothing seems to help. I've already installed Cunstruct v. 09962 to check if this could be a potential bug in the latest version, but no... here I have the same problem. I've recreated the whole thing from scratch and again I can see only the first frame of climbing animation.

So my issue is definitelly version independent. The only question remains: where do I go wrong?
B
15
S
3
G
3
Posts: 5
Reputation: 1,974

Post » Wed Sep 22, 2010 9:50 pm

Post your .cap.
B
9
S
2
G
4
Posts: 346
Reputation: 2,726

Post » Wed Sep 22, 2010 9:53 pm

OK. Problem solved however I still don't fully understand what's wrong.

After many tests I discovered the problem was one of the conditions of the event set for Idle. Take a look at the below screenshot:



If the circled condition is turned off (toggled) I get the one frame climbing animation problem. If the Player 1 "Move Up" is down condition is active in the third step, than all is fine.

From my point of view however it's a weird behavior.
B
15
S
3
G
3
Posts: 5
Reputation: 1,974

Post » Thu Sep 23, 2010 1:42 am

[quote="Sulaco":2hcy2kvj]From my point of view however it's a weird behavior.[/quote:2hcy2kvj]
It's not so weird if you think of the problem like a computer does. When you deactivate that condition, you're basically saying: "Well, I don't care if the move-up-button is down or not. As long as move-right, jump, and move-left are not down, switch to animation 'idle'."

Let's say you press 'move up'. Now what happens is, that according to the events, the animation is constantly switched between 'Idle' and 'Climbing', because

1) [list:2hcy2kvj]'Player 1 "Move Up" is down'[/list:u:2hcy2kvj]
=> is True

2) [list:2hcy2kvj]'Player 1 "Move Right" is not down'
'Player 1 "Jump" is not down'
'Player 1 "Move Left" is not down'[/list:u:2hcy2kvj]
=> is also True
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Thu Sep 23, 2010 2:58 am

EDIT: *FacePalm* I really need to read threads properly before i reply... never mind this post :oops:
B
7
S
2
G
4
Posts: 164
Reputation: 2,418

Post » Thu Sep 23, 2010 7:45 am

Tulamid,

Thanks a lot for your explanation. Now I get it.
B
15
S
3
G
3
Posts: 5
Reputation: 1,974


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests