Using the code below, how would I work out if the green blob is within the radius of the expanding circle? I’ve tried various methods, all of which were overly complicated, and none of which worked 
Obviously, in the finished app the green blob would be moving.
[lua]display.setStatusBar(display.HiddenStatusBar)
math.randomseed(os.time())
_h=display.contentHeight
_w=display.contentWidth
_m=math.random
_x=display.contentCenterX
_y=display.contentCenterY
local fred=display.newCircle(_x + 130,_y-50,30)
fred:setFillColor(0,255,0)
fred.life=100
lifeleft = display.newText(fred.life, 0, 0, “HelveticaNeue”, 24)
local maxstars=44
local stars={}
for f=1, maxstars do
stars[f]= display.newCircle(_x,_y,4)
stars[f]:setFillColor(170,0,255)
stars[f].angle=f
stars[f].speed=2
stars[f].alpha=1
stars[f].radius=0
end
function updateStars()
for u=1, maxstars do
stars[u].x= stars[u].x + (math.cos(stars[u].angle) * stars[u].speed)
stars[u].y= stars[u].y + (math.sin(stars[u].angle) * stars[u].speed)
stars[u].alpha=stars[u].alpha-.01
if stars[u].alpha <= 0 then – This only here temporarily.
stars[u].x=_x
stars[u].y=_y
stars[u].alpha=1
end
end
end
function updateGame()
updateStars()
end
Runtime:addEventListener(“enterFrame”, updateGame)[/lua]
Cheers. [import]uid: 7841 topic_id: 18200 reply_id: 318200[/import]