How do I: Make individual NPC items

Get help using Construct 2

Post » Wed Nov 28, 2012 9:23 pm

Right now the way my player is setup is a green 32x48 Box. I create an instance of Body, Hat, Armor, Bracers, Boots, Weapon and set them to Player.X and Player.Y on move and so on.

Now what I want to do is

On Start of Layout > Create Enemy
Create Body, Hat, Armor, Bracers, Boots, Weapon on Enemy.X, Enemy.Y

But when I do this and then the player moves, it sets all of the NPCs items onto the player.

SInce you know when Player moves Body = Player.X Player.Y

How do I make individual items for individual NPCs.

Thanks in advance.
B
26
S
5
G
5
Posts: 98
Reputation: 4,734

Post » Wed Nov 28, 2012 10:32 pm

Have you thought of spawinging/attaching them to individual points on the characters (making multiple origin points) ?
Using R238 for all examples
B
60
S
17
G
6
Posts: 363
Reputation: 9,125

Post » Wed Nov 28, 2012 11:43 pm

o.O Spawning... Riiight let me try that, I was just using System > Create object at Enemy.X Enemy.Y

Never tried Spawning.

Edit: I don't see it at the Enemy's XY Coords.

Edit 2: How do I move Body spawn by player to the players coords, and move body spawned by the enemy to enemies coords?

Edit 3: I created 2 seperate instances for PlayerArmor and NPCArmor, I am thinking this will work as I will use a Foreach statement for NPC equipment.Equinox802012-11-29 00:05:58
B
26
S
5
G
5
Posts: 98
Reputation: 4,734


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests