Jump to content

Recommended Posts

Posted

I want to have a field or some attribute to PlayerEntity that indicates whether the player is pressing a key.

I've tried DataManagers but the id value overlap makes me think that is the wrong way to do it on top of causing exceptions.

I've also tried Lists and such to store players that did but sidedness and thread safety make me think thats also the wrong way.

My question is how do I add this boolean attribute in such a way that avoids sidedness and is the proper way?

 

Thanks.

Posted (edited)

Thanks.

I do wonder though, why are they called Capabilities? What does that mean in this context? I would imagine it's the ability for an object to do something, which then I'm not sure how that translates to checking if it is doing it, but then there are types and also "facing" which I don't think is like in world directions. 

Edited by Iron1601

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.