Help! Pathfinding and Spawning Issues!!!

Get help using Construct 2

Post » Tue Feb 25, 2014 8:14 pm

I am currently producing a tower defense game but I am having a problem with my enemies spawning. For some reason rather than waiting 1 second and checking if Enemies Remaining is not equal to zero it is spawning the enemies continuously. As well as this problem, I can't seem to stop my enemies from clipping the corners that are created by invisible wall that are opaque and on another layer.


Also having another problem now the pathfinding and spawning is completely broken even defaulting to every 2 seconds

https://db.tt/rNlAJQ9v
Last edited by Ryan Dale on Tue Feb 25, 2014 8:21 pm, edited 2 times in total.
B
2
G
1
Posts: 4
Reputation: 285

Post » Tue Feb 25, 2014 8:18 pm

can you provide a .capx so we can help you?
B
10
S
3
Posts: 75
Reputation: 864

Post » Tue Feb 25, 2014 8:48 pm

ok the problem is in the event :

System EnemiesRemaining = 0,
Go sprite Is Ready System
set EnemiesRemaining to WaveNo * 3.

I will explain what is wrong with this; In the event that "spawns" your enemies you are doing this:

System Every 1.0 seconds
System EnemiesRemaining =0

System set EnemiesRemaining (EnemiesRemaining-1)

so when this condition gets to 0 the event mentioned before sets the variable to WaveNo*3 so it will never becomes 0. You will have to find other way to update your EnemiesRemaining for each level. Hope it helps

Edit: I didnt realize and you toggled some events off but not quite correctly, delete or toggle the DEBUG events correctly or you will keep the strange infinite create object behaviour you are having right now.
B
10
S
3
Posts: 75
Reputation: 864


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, mrkaio, muquia, tarek2 and 2 guests