It looks like you're new here. If you want to get involved, click one of these buttons!
self.cnt = 0
self.cnt = self.cnt + 1 if self.cnt == 10 then self.cnt = 0 local x, y = self.ball.body:getPosition() local dotImg = Bitmap.new(dot) dotImg:setAnchorPoint(0.5, 0.5) dotImg:setPosition(x, y) self:addChild(dotImg) end
Comments
I think slingshot might be similar
http://appcodingeasy.com/Gideros-Mobile/Gideros--Box2d-Slingshot