Hi,
I’m new to Corona but I a good background in programming and game development. I’m recreating this game in Corona and wanted to know what are proper “Corona way” in order to do them. It would be nice if one would give me clues on what I have to do here and there, then I can find my way around:
I have two big boxes on sides of the screen that act as goals and you have to put balls in them. There are balls on the screen that are bouncing and moving and should not enter that goal zone by themselves, only if player drags and releases them on those goal boxes.
There are other details such as random spawning/generation of balls among other things but I don’t want to get there now.
So to break it down:
- I think I can find how to make balls move all the time and bounce with the edges of the screen but how can I make balls not enter those goal zones and only if player drags and drops them there?
(I’m thinking to make those zones as rigidbodies so balls would not enter it, then when player grabs one, it would disable physic on the grabbed object so it can enter those zones and when player release a ball, it would check to see if it’s whether in those zones and if it’s not, enable physic on it again.)
-
How I can limit player’s drag and drop objects so he or she cannot drag and drop on some obstacles, like borders of the screen or other stuff? For example if there is a big obstacle on middle of the level, how we can make the object not get into if if player grabs an object and moves it into that obstacle?
-
How I can define goal zones on each level? Does it have to be hard coded with numbers or I can do it with defining boxes and use physic?
I’m saying this again, I’m not asking anyone to write any code for me, I’m just seeking some advice as all I can find are very simple tutorials on Corona rather than how to make a real game from ground up. [import]uid: 206803 topic_id: 34255 reply_id: 334255[/import]