q1)what is the difference in performance with global run time collisions compared with the below?
q2)what have bein and end phase as what is the difference?
q3) I need to alter properties in collision event but the docs say you should not? how do i alter properties etc in collision events
[lua]function myplayer:collision (event)
if ( event.phase == “began” ) then
if event.other.myName == “ground” then
print " hit the ground"
print (ground.y …" - " … myplayer.y)
end
end
end
myplayer:addEventListener(“collision”, myplayer)[/lua]
[import]uid: 138547 topic_id: 25413 reply_id: 325413[/import]
[import]uid: 52491 topic_id: 25413 reply_id: 102763[/import]