Page 3 of 4
Re: Check if spawned monster is dead
Posted: Fri Oct 31, 2014 10:28 pm
by Jouki
Prozail wrote:Are you sure you're connected to the right script?
I just ran that one.. differnet hardcoded coords, but still, and that worked fine.
ok I've copied your script I really dont know why I didnt delete the c reference (I supposed I didnt see that before) so when I copied, troopers didnt spawn at all

(I'm looking on the map but they are nowhere)
Re: Check if spawned monster is dead
Posted: Fri Oct 31, 2014 10:32 pm
by Prozail
so?? it worked as intended now?
otherwise.. the coords are in two places, in the spawn-function , and in the entitiesAt(x,y)
Re: Check if spawned monster is dead
Posted: Fri Oct 31, 2014 11:01 pm
by Jouki
unfortunately no
Here's the video
Re: Check if spawned monster is dead
Posted: Fri Oct 31, 2014 11:08 pm
by JKos
I think go means GameObject. Game Object contains Components, so its a back reference to the main object.
Re: Check if spawned monster is dead
Posted: Fri Oct 31, 2014 11:14 pm
by Jouki
JKos wrote:I think go means GameObject. Game Object contains Components, so its a back reference to the main object.
so? (sorry I'm so tired with this problem but I'm (We're) so close to solving this I'd be really glad when it'll be over, you know)
Re: Check if spawned monster is dead
Posted: Fri Oct 31, 2014 11:24 pm
by Prozail
Ok, that is wierd...
I see you have 5 maps, so just doublecheck that it is on the first one of them (the level-property when spawning) cuz that is set to 1 in the script.
but that's basically the only ting i can Think of right now.
Re: Check if spawned monster is dead
Posted: Fri Oct 31, 2014 11:26 pm
by JKos
Sorry, I don't know the answer, I just posted because I suddenly realized what .go means (Probably).
Re: Check if spawned monster is dead
Posted: Fri Oct 31, 2014 11:33 pm
by Jouki
Prozail wrote:Ok, that is wierd...
I see you have 5 maps, so just doublecheck that it is on the first one of them (the level-property when spawning) cuz that is set to 1 in the script.
but that's basically the only ting i can Think of right now.
Bye
(solved)
Re: Check if spawned monster is dead
Posted: Fri Oct 31, 2014 11:37 pm
by Prozail
Re: Check if spawned monster is dead
Posted: Fri Oct 31, 2014 11:42 pm
by Jouki
If I complete the whole map (I hope for this) I must notice you guys! I bet many of my questions are so simple that someone would say stupid but you're really trying to helping with anything that's why I love this community <3
