Make RPG tutorial : chapter I - Part 2/4 |
||||||
|
|
Make games with dynamic objects.Don't worry if you don't know what objects are just yet. It will become very clear as you read on. Before doing anything you will need to create a room. Right-click on Rooms and create one. Don't do anything with it yet.
To create objects you first create the associated sprite(s). Sprites are just a buzz word for the small images that move around the screen (your character, the bag image, the table...) To include sprites you must first create them. At this stage I only created very basic sprites for the sake of having something. Once you have an image ready, right-click on the sprites folder and "upload" the sprite into the game..
Then you create the objects (right click on Objects folder, just like sprites or rooms) Double-click on the new object in the panel, name it,
and then you associate the sprite. For dynamic objects, (objects that don't always look the same) I prefer to not associate sprites, but use the draw event to call a piece of code. The code will dispay the sprite according to variables that change as the player interacts with the game. This allows you to make much more complex games than by using the limited point and click features.
Several objects are used at this point.
Objects can be placed in the world view, or Rooms to appear in the game. Sometimes you won't place them there at first but they will be created later by the game, according to situations that occur. They can react to different situations (be created, be destroyed, change appearance, move...). Those situations result from the programming and can be much more diverse by programming code than they can be with the point and click options. Sign up for the email courses and you will have the growing game source code to work with and learn to program and make games quickly. |
||||
Making Video Games Home Game Programming Tutorials Email Courses with Source Code Make Games for a Living Swords and Sorcery Contact Affiliates
© www.makingvideogames.com 2009
Other project: Understand Fat Loss