Creating a point and click game

Hi!
Im rather new to Defold and really enjoy it, while i have a solid understanding of lua Im not familiar with the engine, Im hoping to create a simple pixel game where bugs are slowly moving towards your food and you have to click and they will disappear.
What im looking to do is a simple system with a enemy moving towards a set spot and when you click the sprite it disappears and a point is added to a variable.

Thanks for helping, Rapid!

2 Likes

I think Swarm AI example might help because it shows how to move game object autonomously https://github.com/britzl/publicexamples/tree/master/examples/swarm_ai

Cursor module in Defold Input library can detect which game object is clicked, I think you can use it to determine which bug is clicked. https://github.com/britzl/defold-input/blob/master/in/cursor.md

5 Likes