#killzone to big

1 messages · Page 1 of 1 (latest)

thorn aspen
#

so I am making a game from tutorial and I did this kill zone for monsters but it sees to big

shrewd island
#

You can make it smaller in the editor

#

Just click on the shape

thorn aspen
#

I tried it but the it dosen't work

#

and I think that in the game killzone radius is something like this

shrewd island
#

Then the issue must be because of something else if the kill zone is that big

thorn aspen
#

maybe something with the code? if you want I can show it to you

shrewd island
#

Ok

thorn aspen
shrewd island
#

It seems that it starts the timer when any body enters the area

#

Is there more than just the player than can enter the kill zone?

thorn aspen
#

no its just simple code from tutorial

shrewd island
#

So there are no other bodies in the scene beside the player?

thorn aspen
#

ohh sou you are talking about this

#

yes there are other bodies

#

there are 5 platforms 1 moving platform and 11 coins that you can pick up

shrewd island
#

Does the enemy touch any of them?

thorn aspen
#

no but the moving platform stops in this circle and start animation again when its suppose to go to another end of the gap

shrewd island
#

When does the game restart exactly?

#

When the player gets too close to the enemy?

#

Or just after some time

thorn aspen
#

it restarts after 0.6 seconds but player have to get to ist radius

#

its*

shrewd island
#

Can you turn on collision shapes in the debug menu?

#

That way you can see the shapes when you run the game

thorn aspen
shrewd island
#

Ok turn it on and run the game

#

You should be able to see the blue shapes when running the game

thorn aspen
#

okay I see them

#

and what now?

shrewd island
#

so the monster's killzone is not overlapping with any bodies?

#

maybe it's the timer that's the issue then

#

is the timer autostart?

thorn aspen
thorn aspen
shrewd island
#

No, i mean does the timer have the autostart property turned on?

thorn aspen
#

no

shrewd island
#

oh

#

uhhhh sorry i don't know then

thorn aspen
#

okay no problem

#

but thanks for answering anyways

thorn aspen
#

for those with the same problem:you have to set collision layer of player on layer 2 and collision mask of monster on layer 2