Hi, as my first game using Lua I am making a game where you are a rocket, and you try to dodge asteroids. I have a few questions.
-
I’ve written a program for the asteroid movement and speed, but I am wondering how to make it work for multiple asteroids at once. I’m using various variables, but other than duplicating it and renaming all the variables how can I make it work for multiple sprites at once?
-
I am having trouble making the program detect whether the rocket is touching the asteroid. Is there a basic way of doing this?
-
My brother is also having a go at Codea, and he wants to make buttons that move his character right and left. I’ve tried to work it out myself, but I’m quite confused about how.
So yeah. Apologies for our noobiness. Any help would be greatly appreciated (by both me and my brother) as we would love to be able to program apps ourselves