My issue is basically what is in the title. I am trying to get the tiles to check what is next to them and then update their frame based on whether there is ground near by, or not. I know that the events I currently have are likely not the most efficient, but that is not necessarily what I am going for at this moment. ( I am also using http://www.scirra.com/arcade/action/3926/go-faster as pretty much the ground work for this capx)
Currently what I do is spawn an air tile onto every ground tile that has an animation frame of 0, then I go through each Ground Object and check if it overlaps in Up, Down, Right, and Left directions. If it overlaps then we set the instance variable to true, and then go through a huge list of If Statements to determine which frame to set it to. (The green "grass" should be facing the air and just dirt should face nearby tiles.) Some tiles come up correct, and others do not. I feel that because of this I am missing something simple, so I am uploading the capx so you guys can get a better view of what I am rambling about. (I have to go to work so this is just being thrown up quickly <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">