Hey guys, im new to this kinda of thing and was after help to get going I’ve created a game just a simple one to get me started and was wanting to know a few things I have a basket I wish to move left and right automatically while I have a cannon which you have to rotate and shoot I am wanting to know how to rotate the cannon left and right, right and left and also touching the cannon to make it shoot and also placing something like fruit or an object of any sought in the cannon to shoot and for the basket to catch it when you aim right I am also wanting to know how to make a score that will go up everytime you hit the basket and a level in making the basket faster with the higher score you get and last but not least placing other objects in to make it harder to hit the basket here is what I have so far
–
– main.lua
local physics = require( “physics” )
physics.start ()
local sky = display.newImage( “sky.png” )
sky.x = 160
sky.y = 195
local ground = display.newImage( “grass1.png” )
ground.x = 160
ground.y = 525
–physics.addbody(ground.{friction = 0.5})
–ground.Bodytype = “static”
ground.Myname = “ground”
local Basket = display.newImage( “Basket22.jpg” )
Basket.x = 157
Basket.y = 30
local Movespeed = 2
local Cannon = display.newImage( “Cannon113.png” )
Cannon.x = 160
Cannon.y = 465
display.setStatusBar( display.HiddenStatusBar )
Is this right so far???
Please help
Mark