Week 4 – Creating a Context Menu

My project for this week has been to create a drop down menu (or as some call it, context menu) for when the player interacts with objects which controls the actions for each objects.

It’s a project I have been working on which has proven to be rather challenging, as I would need to access and save the object that has been pressed in order to manipulate it. Described in simple words the object selected would have to be saved into a variable which the menus scripts could use to access components within the clicked object.

As for example we have an image of a door below with its menu to the right, there are different actions for the door and for the pictures I have chosen option 1. Which is simple opening the door, you can observe the difference in the before and after pictures below.

drop down menu fraus 2

This is just one object but this menu works in the same way for every object in-game and every object has their own set of buttons with different name for each object. Here’s another picture and this time its a computer that has been clicked and it has only two actions as for the moment. So the menu changes depending on what object has been clicked, it’s currently as placeholder for the actual menu which is in progress and is scheduled to be implemented during the following week.

drop down menu fraus 4

I can make another post explaining this in more detail if anybody is interesting in how this process works otherwise that’s all for this week and more to come on the development to come.

So long!

About David Eliasson

2014  Programming