A few days ago i started on codea and now trying to make a game i need to know how to shoot a missil from my sprite when someone touches the screen. Any help?
There are several steps
- know when (and where) someone touches the screen
- what the missile looks like (is it a sprite, a line, ??)
- what do you want the missile to do?
- what happens if it hits something or goes off the screen?
Which step do you need help with?
I think all i need is help with the when and where someones touches the screen.
see if this helps
http://coolcodea.wordpress.com/2013/03/26/11-handling-touches-simple-pinch-and-zoom/
Have a look at this tute as well: http://codeatuts.blogspot.com.au/2012/08/tutorial-14-spacewar-extended-ship-class.html
Okay. Thanks guys i think i got it!