Sunday, 6 March 2011

Creating the Concept

With this one, I have decided to try scripting in AS3. It's not the prettiest looking thing at the moment (visual designs will be done late) as I have been trying to work out the script.



This video has captured what I managed to do for making the plants work.
Its made with a series of buttons and gotoAndPlay scripting. 


For buttons I've used the code:
movieClip.addEventListener(MouseEvent.CLICK, mouseClick);
function mouseClick(Event:MouseEvent):void{
     gotoAndPlay(frame);
}
Mouse Events used were click and mouse_out.

I also learnt a way of going to the parent timeline as it is not as simple in AS2, the code I used was:
MovieClip(parent).gotoAndPlay(frame);




This video sow the starting efforts for I've made for trying to get the final piece. The menu here is the main control especially when dealing with the land. so to plow, the user would select this in the menu and and then click on the tile as show. This will remain there when the user reverts back to the select menu option.

Unfortunately you can't see the mouse on the screen, but with every click, there is a change on the screen. 

No comments:

Post a Comment