Destroy All Object Help
#4

Quote:
Originally Posted by Savana221
Посмотреть сообщение
Nothing ... Creating 5 barricades, now wiped only last, but not all ..
thats because you are using variable "i" in the creating function which will be always 0 and on each creation index 0 is getting replaced one solution could be changing this to an iterator or declare variable I in that function as static and on the end of function increment it (which I wont recommend) or loop through indexes as you did in 2nd function find the index having null element and use that index.
Reply


Messages In This Thread
Destroy All Object Help - by Savana221 - 07.02.2017, 07:38
Re: Destroy All Object Help - by SyS - 07.02.2017, 07:40
Re: Destroy All Object Help - by Savana221 - 07.02.2017, 07:50
Re: Destroy All Object Help - by SyS - 07.02.2017, 08:35
Re: Destroy All Object Help - by Savana221 - 07.02.2017, 08:47
Re: Destroy All Object Help - by X337 - 07.02.2017, 09:31
Re: Destroy All Object Help - by Savana221 - 07.02.2017, 10:36

Forum Jump:


Users browsing this thread: 1 Guest(s)