Strange Animation problem

Get help using Construct 2

Post » Tue Sep 03, 2013 12:52 pm

hello there :)
so after hours of hard work i finally came to the point where i put some battles into my game.
i am developing a sidescrolling action game. the general idea is it to be able to fire arrows in three directions: left, right and up.

the left and right part was tricky with the system I use but it works perfectly now. However I have a problem with firing upwards. that problem is connected to the enemies not playing their death animation funny enough.

you see the eventing is made in a way that the player has his shoot animation and at the end of said animation the arrow fires. and that works. however for some unknown reason when i press up and shoot the animation starts and then hangs on the first frame.

curiously enough the death animation of the enemies has the same problem. it hangs on the first frame and does nothing after that first frame. somehow this seems to be connected because when I want to add the injured animation for enemies that got hit the engine does what it should, stop the enemy shortly and reduce its health but the walking animation keeps playing instead of the injured animation as should.

i double checked all the names and they are correctly typed. its alos strange that this problem only applies to some animations but not all. most animations work fine.

any ideas?
B
7
S
2
Posts: 66
Reputation: 720

Post » Tue Sep 03, 2013 1:05 pm

I think we'd need to see the capx for this issue.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Sep 03, 2013 1:14 pm

sure thing, there ya go:
https://www.dropbox.com/s/3y28j0ikgpp95w9/Game.capx

controls:
arrow keys and dpad: move left, right, duck and aim up
XCV on keyboard and AXY on gamepad are jump, fire arrow and punch

i removed a few functions earlier to narrow down my problem so not all features of sooting upwards and such are implemented - no use if the animation wont play.
B
7
S
2
Posts: 66
Reputation: 720

Post » Tue Sep 03, 2013 2:52 pm

You had some conflicting events due to the keyboard or gamepad.
I'd advice you to create different groups instead of making so many or events because it gets confusing.
I did manage to get it working though.

Game improved r142
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Sep 03, 2013 3:21 pm

rehi
thanks i checked it out. shooting up is now working, thanks for that. can you tell me where the problem was because the death animation of the enemies is still not playing as it should!
B
7
S
2
Posts: 66
Reputation: 720

Post » Tue Sep 03, 2013 3:45 pm

The problem with your enemy is the same.
You have multiple events with conditions that are true.
Make it so that only one event gets triggered by creating conditions that prevent another event triggering.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Sep 03, 2013 4:47 pm

Alright, that helps :)
Thank you very much :)
B
7
S
2
Posts: 66
Reputation: 720


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests