How to not use For Each?

Get help using Construct 2

Post » Sat Sep 07, 2013 12:56 am

I have an enemy type with 73 lines of code and they each have one detector to determine how to move properly in a tile by tile movement engine which forces the actors to walk back in line with the invisible tile grid if they aren't lined up with it properly because of wind blowing them pixel by pixel or what have you. I can't seem to find a way to connect the detector to the enemy without using for each loops, which drags the FPS of my game down to below 10 when there are more than 100 on screen at once and I for each through all the enemies. Is it possible to pull this system off without a for each loop?
B
45
S
13
G
1
Posts: 236
Reputation: 4,010

Post » Sat Sep 07, 2013 1:29 am

B
55
S
29
G
19
Posts: 1,520
Reputation: 25,680


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests