
For lab 26 we had to make a symbol move using arrows. Arrows that we created on our own as well as arrows from the keyboard. First step was to create triangles and convert them into graphic symbols. We eventually created the arrows using the triangles. We inserted a figure to use it as a sample in order for it to move. To do this we used ActionScript making the objects move along the mouse. To indicate direction the code label was nameoftheobject_obj.x-=10 and if you wanted to go the other way nameoftheobject_obj.y+=10. To create movement from the computers keyboard you simply go to code snippers, open navigation and chose move with keyboard arrows. The hardest part of the lab was to make sure that the code was written correctly with its proper camel style or else it wouldn't work. The easiest part was to create arrows and chose the proper functions.
No comments:
Post a Comment