Game Development Reference
In-Depth Information
Making our object
Next we need to make the actual object. To do this, create a new object by clicking on the
green ball on the main toolbar
.
This will create a new object and show its properties. Name the object obj_player .
Once again, we use the three-letter naming convention. Next, we need to give this object
our sprite by clicking on the blue button to the right of the box saying <no sprite> . Then,
select the sprite from the drop-down list as shown in the following screenshot:
We are now ready to make our object move. We are going to give the player the ability to
move the instance based on the keyboard buttons that are pressed.
For this, we need to add four events; keyboard left, right, up, and down, to our object. Click
on Add Event . This will show the event window where we can choose which event we
want to add.
Search WWH ::




Custom Search