I have a player/image that goes up and down on the screen.
I have a function that spawns an image every time you touch the screen
— right here is the function that spawns the image —
tapTothrow = function (event)
if event.phase == “began” then
moneyBag = display.newImageRect(gameGroup,“play.png”,80,80)
moneyBag.x = W1 / 2 + 100
moneyBag.y = H1 / 2 + 120
physics.addBody(moneyBag)
moneyBag:setLinearVelocity(100, 0)
end
end
— right here is the function that spawns the image —
as you can see I set the image to spawn at a set place on the screen but I want it to spawn where the player/image is. thanks!!!
also download super pooper its for both app store and google play. googleplay version has the updated version. It’s also my first app! (]: thanks for the support!