Hi guys,
Can you help me out here.
Lets say I have a multi element body created in Physics editor.
Man character is created with two legs, two arms, one body and one head.
local man = display.newImage( "man.png" ) -- LOAD ONE IMAGE OR LOAD MULTIPLE IMAGES?? man.x, man.y = display.contentWidth/2, display.contentHeight/2-200 local leftLeg = { -- some shape numbers here --} local rightLeg = { -- some shape numbers here --} local body = { -- some shape numbers here --} local leftArm = { -- some shape numbers here --} local rightArm = { -- some shape numbers here --} local head = { -- some shape numbers here --} physics.addBody( man, "dynamic", {shape=leftLeg}, {shape=rightLeg}, {shape=body}, {shape=leftArm}, {shape=rightArm}, {shape=head} )
How can I remove man`s body parts on touch (not collision)?
I do not want to set alpha of touched body parts to zero, I want to remove touched body parts.
So if you touch left arm for example, man looses his left arm.
If removing man`s body parts on touch is not possible, can you hint how to set touched body parts alpha to zero and animate touched body parts?
I am not interested in collisions so far.
Waiting your reply.
Many, many thanks!
Ivan