Hello,
I have an object (Obj1), which collides with a sensor (Sens1).
When I detect the collision in the “began” phase), I stop Obj1 (set linear velocity to 0,0) and change Obj1 to have a “kinematic” body type, in an attempt to be able to move it manually to the center of the sensor by changing its x and y attributes using:
Obj1.x = Sens1.x.
I do this because I want to start an animation after it moves to the center of the sensor.
Every time I try setting the x or y attributes for Obj1, the simulator crashes.
I tried doing it with:
Obj1:translate(deltax, deltay)
but it still crashed.
I am new to Corona but I am a developer. I must be making some kind of basic mistake.
Any help would be greatly appreciated.
Thank you in advance.
[import]uid: 12046 topic_id: 4155 reply_id: 304155[/import]
