Question on CollisionDetection sample app in Corona SDK

I just saw the sample app with 2 crates the sky and the grass, the one that comes with corona, to teach people how to do collision.

I read the code I have it in front of me, and I have no idea how to make it work on storyboard.

– the event is very “noisy” ??

–"preCollision: " … self.myName … ??

– event.force ??

and so on…

This code is for someone that already know a lot of code. (I think)

I am very beginner, is there out there somewhere something more simple and easier?

instead of pre-collision, porst-collision, collision and all that

one simple app, but again, in storyboard, that go from one lua file to another

and makes only collision, that’s it, simple

once I get that, maybe I can try pre-collision

and then after a year maybe if I’m ready post-collision

little by little, like a tiny little baby

I have many post of that, on no solution yet.

Thanks for all your help

A simple function for collision

local function onLocalCollision( event )     if ( event.phase == "began" ) then         print("just touch")     elseif ( event.phase == "ended" ) then                  print("finish touched")     end end myCircle.collision = onLocalCollision myCircle:addEventListener( "collision", myCircle ) redCircle.collision = onLocalCollision redCircle:addEventListener( "collision", redCircle )

But I see nothing in the terminal. what is wrong

thanks for your help

A simple function for collision

local function onLocalCollision( event )     if ( event.phase == "began" ) then         print("just touch")     elseif ( event.phase == "ended" ) then                  print("finish touched")     end end myCircle.collision = onLocalCollision myCircle:addEventListener( "collision", myCircle ) redCircle.collision = onLocalCollision redCircle:addEventListener( "collision", redCircle )

But I see nothing in the terminal. what is wrong

thanks for your help