How to make an object not be created on the map on top of another object?

0

I have an object that is randomly created by the map, and this causes it to be created on top of other map objects ... How to make it not be created on top of these other objects, but only where the map is empty?

    
asked by anonymous 08.05.2016 / 02:42

1 answer

0

1 - The solution would be to create an object ( Sprite ) of the same size as your character that checks if it is on top of another object before it " spawnar " its main object.

2 - For this you can create a group for objects that can not be below and then do verificador verificar xD

3 - If Object is Overlaping Another Object in case " Grupo de Objetos " then your " verificador " randomizes again.

    
21.04.2017 / 07:05