Well I have entered the world of Tilebased games, Ive finally decided to learn it as it appears that everything is revolved around it. I took the time to read Tonypa's site about tile based system and done a few tutorials reverse engineering everything
I know how everything works now ... for the most part
Now my question (yes ... Im going to sound like an idiot asking this)
Ok, Ive attached an .fla, when you run it, it basically randomizes 4 different coloured blocks, tile based of course in a grid. All I want to do for now is to trace the 2D array when you click one of the tiles so I know which block is clicked
Haha hey thanks, thats what I wanted, except I dont know if it worked or not...
You put myX and myY, those are variables im guessing. You also made a function called clicked which has two parameters passed in which are the x and y values.
The function is called in the other function build and passes in the x and y of the variable temp , which should be the tile you clicked ...
But for some reason no matter where you click, the trace returns the value of
"x : 11 , y : 10"