Game Development Reference
In-Depth Information
In the Insert New Object window, you can add a whole bunch of new objects. If you
want to add more functionality, this is where we can add them.
The reason for this comes from the roots of software development. Generally, in order to
add more functionality, you have to add more libraries and more functions. If you don't
need these libraries or functions, there is no point having them in your project. They could
cause conflicts or they could use up too much memory. You should always have just
enough objects in your game to make it work. Keep in mind, however, that having too
many objects is just as bad as having too few. Luckily in Construct 2, most of the prob-
lems with adding objects have been taken out of the equation.
Scroll down on the page and double-click on the Keyboard icon to add it to Construct 2's
functionality, as shown in the following screenshot:
Adding functionality to the keyboard object
Let's start by adding some functionality to the Keyboard object. We need to open our
event sheet to add some functionality to the object we have placed on the screen. In order
to do that, double-click anywhere on the event sheet. You should see the Keyboard icon
appear, as shown in the following screenshot. If you didn't add the keyboard functionality,
this icon would not be there. Go ahead and double-click on the Keyboard icon.
Search WWH ::




Custom Search