RPG Part (6)

Index

Attached Files

The following files have been attached to this tutorial:

.capx

Stats

2,175 visits, 5,850 views

Translations

This tutorial hasn't been translated.

Tools

In this last section we will be covering:

• Importing our NPC art and animations

• Setting up our NPC interaction

• Programming our story-arc for our NPC to say

Now let’s import NPC (None Player Character.)

Import NPC

Name this sprite as spr_NPC

Name Animation ID_1

Add Animation Name it ID_2

Set origin point at bottom. Now let’s add Behaviour as follows:

Solid

Line of sight set Range to about 100

Now what this NPC has to do is when Player come in contact it will bring up something like Press this key or that key. So when player press this key something happens.

Import Sprite PressX

Name this sprite spr_PressX and set Visibility to Invisible.

Now create new sprite and import these animation;

Import MSG Sprites

For this sprite create 3 animations and name it and set it Visibility to Invisible.

ID_1

ID_2

ID_3

Place this sprite on HUD layer somewhere like below;

Name this sprite to sprText;

Create new Event Sheet

Now let’s create new event sheet and name it NPC Events. Also remember to INCLUDE this NPC Events sheets to Maingame_Event.

Now go back to your NPC events and add GLOBAL VARIABLES npc_Story = 0 and add line below:

  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!