As I do to make it work well?

Get help using Construct 2

Post » Tue Apr 05, 2016 6:34 pm

Message: ElChuchis can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
This lines of code only makes work well one of the 4 ships. How can i do for these lines affect to all ships.

CODE:
https://gyazo.com/79d7796d4a819bb3ad35427e95bf6514

Thanks you all!
B
14
S
6
Posts: 63
Reputation: 1,236

Post » Tue Apr 05, 2016 6:45 pm

I made a quick edit of the image to show you what to do: http://i.imgur.com/sOfQA4O.png
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219

Post » Tue Apr 05, 2016 6:54 pm

Thanks you! But you know whats happening¿? (Sorry for my english)
B
14
S
6
Posts: 63
Reputation: 1,236

Post » Tue Apr 05, 2016 7:22 pm

The pathfinding events weren't considering the "State" value. So whenever a ship failed to find the path, doesn't matter in which mode they were in, they would all follow the last "on pathfind failed" on the list. Putting these events as sub-events makes it so they are being applied to the right ships

It's important to read this manual page: https://www.scirra.com/manual/75/how-events-work
Correctly picking your objects is one of the most important aspects of C2
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219

Post » Tue Apr 05, 2016 7:33 pm

Message: ElChuchis can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?
Still not working, check what i changed:

https://gyazo.com/c37fac9686efb9b501a84d9901894dd3

Check effects (only one of the ships move):

https://gyazo.com/74c7ff5f1dba98a39fd60dbc4c05dac3

(Can't put pathfinder as subevent)
B
14
S
6
Posts: 63
Reputation: 1,236

Post » Tue Apr 05, 2016 8:21 pm

Message: ElChuchis can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
OK, problem solved. I delete "For each"

https://gyazo.com/bad90884ff6b5a35ecb70f842a9727e3
B
14
S
6
Posts: 63
Reputation: 1,236


Return to How do I....?

Who is online

Users browsing this forum: duke2704, megatronx, sebrosen and 2 guests