Corona Collision Effects

Hi,

I am newbie about corona. I am developing a game like tower bloxx. I want to as two questions.

Q1) Is there any way to avoid collision effects? Fox example there are 15 phiycs objects. They are like a tower’s blocks.  When I add to 16th object ( or block or floor) other 15 objects affected. Their coordinates change. For example before I add a new object,  14th object coordinates x=274 , y=15. After I add to new object the 14th object coordinates are x=270 y=15. If I add a new 14th coordinates change to x = 265 y=15 and so on. Also other objects are same. I want to keep same coordinates after collision. 

Q2) When my tower expand, how can I adjust screen? Because the tower doesn’t fit when It grow. I change to increase  all object’s  y position for this. Every object on screen go blow of screen so people doesn’t see. But is there any way to change screen position. Like a scrooll? 

Hi @emrekalyon,

The following tutorial may help you on the topic of “tower building”:

http://coronalabs.com/blog/2015/03/03/tutorial-solutions-to-common-physics-issues/

As for “scrolling” the view, you’ll need to scroll the entire world (stage) at once. You can’t scroll individual display groups containing physics objects independently of each other, as that will cause issues with collisions, but you can scroll the entire overall stage and that will effectively work for your design.

Best regards,

Brent

Hi @emrekalyon,

The following tutorial may help you on the topic of “tower building”:

http://coronalabs.com/blog/2015/03/03/tutorial-solutions-to-common-physics-issues/

As for “scrolling” the view, you’ll need to scroll the entire world (stage) at once. You can’t scroll individual display groups containing physics objects independently of each other, as that will cause issues with collisions, but you can scroll the entire overall stage and that will effectively work for your design.

Best regards,

Brent