Hi, there is some way to fire a bullet with like a cool smoke trail?
What do I need to put on the code to make that?
local function go(event) display.remove(logo) display.remove(begin) local planet = display.newImage("images/earth.png") planet.x = centerX planet.y = centerY planet:scale(4, 4) transition.to( planet, { time = 200, xScale = 1, yScale = 1, onComplete = animate} ) local function firebullet(event) local bullet = display.newCircle( planet.x, planet.y, 2 ) physics.addBody( bullet, { density=3.0, friction=0.5, bounce=0.05 } ) bullet.isBullet = true local deltax = event.x - planet.x local deltay = event.y - planet.y local bulletangle = math.atan2(deltay, deltax) local xforce = (math.cos(bulletangle))\*100 local yforce = (math.sin(bulletangle))\*100 bullet:applyForce( xforce, yforce, bullet.x, bullet.y ) end bg:addEventListener ( "tap", firebullet) end