Monday, 14 April 2014

Working Processes: Creating the Game - Adding 2 Camera angles, Cursor changes and Item features.

I added two camera angles, cursor changes when hovering over items in the inventory and made it so you could drag the key out the inventory.

1) The picture frames
2) The door

These two camera angles currently have no scripting. It is likely that the picture frames camera angle won't have any button scripting, other than going back to previous camera angle, as they are just there to look at.

The main door will have scripting so that the door would be able to be opened once an item is used on it and some booleans have been set to true.

I have inserted different cursors into the cursor movieclip is that a wider selection is available. This is not for the user to choose which cursor they want, but as a way of indicating which item does what.
In the inventory, if an item is draggable, a hand will appear.
If the item is only suppose to be clicked on, then the pointer cursor will appear.

Finally, I made it so that the key, which is received from the drawer, can be dragged from the inventory, just like the lightbulb was.

The code used is exactly the same just with different instance names and functions.

For the cursors, I used this website to help me:
http://kirill-poletaev.blogspot.co.uk/2010/07/mousecursor-property-in-actionscript-3.html



No comments:

Post a Comment

Note: only a member of this blog may post a comment.