Access Circle radius property?

Can you access the radius property of a newCircle?

I want to be able to change it after it’s been created.

Thanks,
Kurt [import]uid: 142918 topic_id: 32577 reply_id: 332577[/import]

You can scale it or you could delete and recreate.

http://developer.coronalabs.com/reference/index/objectscale [import]uid: 52491 topic_id: 32577 reply_id: 129576[/import]

Is deleting and recreating an intensive process?

I’d have to do this for up to three circles on each frame.

If I went with this process, would a runtime event be the best method, as in clear all preciously created circles then create new circles with said radius, repeat?

K

[import]uid: 142918 topic_id: 32577 reply_id: 129595[/import]

You can scale it or you could delete and recreate.

http://developer.coronalabs.com/reference/index/objectscale [import]uid: 52491 topic_id: 32577 reply_id: 129576[/import]

If this is a frame-intensive process, I would recommend scaling over delete and recreate… both are fine methods, I just suspect the scaling is slightly more efficient.

If you need EXACT radius step ups, you can do reverse math to figure out the scale you need and plug that value into the scale command.

Brent [import]uid: 9747 topic_id: 32577 reply_id: 129607[/import]

Is deleting and recreating an intensive process?

I’d have to do this for up to three circles on each frame.

If I went with this process, would a runtime event be the best method, as in clear all preciously created circles then create new circles with said radius, repeat?

K

[import]uid: 142918 topic_id: 32577 reply_id: 129595[/import]

If this is a frame-intensive process, I would recommend scaling over delete and recreate… both are fine methods, I just suspect the scaling is slightly more efficient.

If you need EXACT radius step ups, you can do reverse math to figure out the scale you need and plug that value into the scale command.

Brent [import]uid: 9747 topic_id: 32577 reply_id: 129607[/import]