As mentioned before, the first step was to make the objects selectable from the boxes, in order to do this there is the image of the 5 different choices the player has, and there is also a collision box for each of them.
In code , the way this is going to work is as follows:
1) Check collision with boxes
2) if collided then each box changes the hand movie clip to one that has itself in it. each box contains a variable called objectName, and this variable is the one that has the different options.
3) the mouse changes frame and it gives the illusion that it picked up an object from the box.
This is the swf file.
No comments:
Post a Comment