EDIT: Check second post!
Hello. I'm having a bit of a problem with my script. I currently have a square that moves across the screen. There is another square on the stage as well. I want the other square to call a hitTest with the first square (that moves), which we'll give an instance of "hero". The hitTest should make the "hero" (or first square) rotation a specific degree (in this case 30) and then move him in a specific direction, either up, or down the y-axis or left or right on the x-axis. This is my current code, attached to my second square.
_root.hero.rotate += 30;
The code only says to rotate the hero, but it does not work - any advice? Also, how would I add something like I mentioned above, where the "hero" would also move in a new direction? Any help would be appreciated! The file is attached if any of you have questions on how it might be set up.