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?
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?
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.