I kinda gave up on my last game for no hit detection code would work but I started a brick breaking game and this code isnt working right:
----------------------------------------
---------------------
onClipEvent (load) {
}
tellTarget (_root._root.ball) {
_x -= 10;
_y -= 10;
}
----------------------------------------
----------------------------------------
--------------------
The ball that breaks the bricks instance name is ball but I get this message
----------------------------------------
------------------------
Symbol=Symbol 5, Layer=Layer 1, Frame=1: Line 4: Statement must appear within on/onClipEvent handler
tellTarget (_root._root.ball) {
----------------------------------------
----------------------------------
I can determine whats wrong with it and I will not give up on a game so simple.
Thanks