Enemy attacks properly the first time, then spams attack

Get help using Construct 2

Post » Fri Jun 27, 2014 12:49 am

Hey Construct Community,

I've created a pretty neat enemy dueling AI, but it has one problem. When the player enters the enemy's attack box, the enemy attacks the way it should the first time, but on its next attack it won't stop attacking and "breaks".

The events are at the very bottom of the event sheet.

Capx: https://www.dropbox.com/s/28wddcskoi9l9 ... pg1.2.capx
You do not have the required permissions to view the files attached to this post.
Last edited by awmace5 on Fri Jun 27, 2014 4:37 pm, edited 1 time in total.
B
22
S
3
G
1
Posts: 153
Reputation: 1,883

Post » Fri Jun 27, 2014 2:19 pm

Could not download. Could you attach to the post instead?
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
15
S
3
G
1
Posts: 329
Reputation: 2,012

Post » Fri Jun 27, 2014 4:38 pm

Attached to post.
B
22
S
3
G
1
Posts: 153
Reputation: 1,883

Post » Fri Jun 27, 2014 6:00 pm

Check it! :)
platformerrpg1.2.capx
You do not have the required permissions to view the files attached to this post.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
15
S
3
G
1
Posts: 329
Reputation: 2,012

Post » Fri Jun 27, 2014 7:26 pm

Whoa how did you fix it?!

Thanks a bunch!
B
22
S
3
G
1
Posts: 153
Reputation: 1,883

Post » Fri Jun 27, 2014 8:15 pm

I put the wait event inside the On animation finished. For some weird reason having it on the other event, which I deleted, was creating a quick loop. O.o
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
15
S
3
G
1
Posts: 329
Reputation: 2,012

Post » Fri Jun 27, 2014 10:29 pm

Very clever. Would this be considered a bug? Should I report it?
B
22
S
3
G
1
Posts: 153
Reputation: 1,883


Return to How do I....?

Who is online

Users browsing this forum: Darth Crusher, NN81, plinkie, TsubaRu and 10 guests