Hello,
I know that the question has already been asked several times and I first tried what was said in those topics. Although, it was too complicated.
I have a factory which creates several items over time. After a few seconds, it gets destroyed with go.delete()
. What I want to do is to destroy the object once it’s clicked and send a message to an other game object.
The game is based on click and I thought that it was something which worked with the hitbox. I got told that it was the case because of the Z coordinate. I also got told that there were two ways to do that:
- Transform those game objetcs into GUI objects
- Use an invisible object which follows the cursor and check the click and the collision
I tried also to understand the example for clicking objets but It’s complicated for me.
It is my first project and if I knew that hitboxes were not enough, I would have not chosen a game based on clicks or would have chosen a different engine for this project. As it’s started already, it is a good thing to continue and learn more !