![]() |
A little help >.>
I was mucking around with 360 Rotations and all and I joined all the NPCs with npc[i].x and y and it all worked out fine, then I came across a problem when I added a new one and one went missing and I double checked >.>.
is there a max of npcs that can be on npc[i].x and y?. |
well, if you do a for loop to index all the npcs, it will include all the npcs. ( I dont know what you mean, 'max' ).
This is an example, of using a for loop with npcs[index] NPC Code: Thats just an example of how to use it. (npcs move away from player) help at all? |
*edited the script*
yea your right heh. I just wasn't sure if he was indexing all the npcs, somehow, but there ya go hehe. And Chicken, maybie if you posted part of your script we could see why its stopping, or if your doing it correctly :P |
Yeh exactly what I ment Kai, sorry I wasent clear lol.
I'll try your script soon ning and see if it's what's the problem but i'm sure it's the array and one of the parts in the array have gone missing, maybe it's a spelling mistake (but I don't think it is). |
I'll just cut it down, wont be to hard lol.
and i'll do some spell checks and all I just wanted to know if there was a max, the scripts fine but yeh it could be a bug. *goes to sleep* |
1 Attachment(s)
Quote:
Attached is a level with 256 + npcs in. I also added a "eek get away from me" script for the entertainment value, if you change npcs[i].x/y with playerx/y then you get different movement, more like a "eee come here sexy". Well anyway, yea. |
Quote:
I added more 70 elements and it's working fine. (Maybe it's a bug as Kai said?) |
aaah, i see. :grin:
|
| All times are GMT +2. The time now is 06:35 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.