Jump to content

How Do I Add Multiple Scripts To Player


metaldc4life
 Share

Recommended Posts

hi,

I am brand new to this and was wondering how I add multiple scripts like an inventory script to the player...

I pm'ed Josh on this one and I didn't quite understand much of it (sorry Josh =/)

 

here is what I put:

 

 

my main question is how do I add multiple scripts to a player character so I can add inventory, health bar etc. to him??

 

and he put:

 

"We use a design of one script per entity. This eliminates a lot of problems when you are writing more advanced scripts. For example, with our system it's easy to find the "health" value of an entity:

health = entity.script.health

 

During development, we also tried it with multiple scripts and found it got really messy very quickly. "

 

I really do appreciate everyone's input (especially Josh's) but I just don't understand this yet so if anyone can help I would be a million times grateful! =)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...