Movement boy, eggs, smash eggs, catch the eggs, high score, number of lives

Hi. I need scripts in Lua (2D game) for movement boy (up, down, left, right), rolling, catch and smash eggs, high score and number of lives for my 2D boy… Like in this game https://www.youtube.com/watch?v=i6zl4QSqVmE . I am new in programming (I work in 3D ( 3D models, textures, 3D animation, lights, cameras, final renders…)). Can you help me? Thanks

It’s cool that you have a game idea, but it doesn’t really work to ask a question like this. You’re basically asking someone to create a game for you.

You need to spend some time learning and understanding what you need in terms of code for your game. Have you read any of the Defold documentation or checked any of the small examples where a lot of what you are asking for is covered one way or another?

2 Likes

Hi. Thank you for your reply. I already create my 2D game but some parts I didn’t (these couple scripts miss me). Where to find Lua books, Lua tutorials about these scripts? Thanks

A decent starting point for learning Lua: https://defold.com/manuals/lua/

Those are very generic parts and there is probably no such script that will suit you perfectly, so that’s why we think it would be better and easier to write your own. You can take a look at examples on Defold and some bits might be helpful:

So what parts you already have? Did you write scripts or did you make something else?

3 Likes

Thank you.

Thanks.