Am I doing something wrong?

Hi guys! The collission event doesn’t work anymore why?Here’s the code.

When “logo01” hits “logo”  nothing happens,why?

local physics = require "physics" physics.start() local logo = display.newImageRect("Icon.png" , 600,100) logo.x = 50 logo.y = 500 local logo01 = display.newImage("Icon.png" ) logo01.x = 100 logo01.y = 50 physics.addBody (logo,"static") physics.addBody (logo01,"dynamic") function onCollission (event) if event.phase == "began" then print ("works") end end logo01:addEventListener("collission",onCollission)

In your final line, you did not type the first parameter correctly. It should be:

“collision”

not

“collission”

Take care,

Brent

Thanks!

In your final line, you did not type the first parameter correctly. It should be:

“collision”

not

“collission”

Take care,

Brent

Thanks!