Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character component: Block #11

Open
PhillypHenning opened this issue Nov 3, 2021 · 7 comments
Open

Character component: Block #11

PhillypHenning opened this issue Nov 3, 2021 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@PhillypHenning
Copy link
Member

No description provided.

@PhillypHenning PhillypHenning added the enhancement New feature or request label Nov 3, 2021
@JohnFu11er
Copy link
Collaborator

CharacterBlock functioning framework completed:

  • Debug.log in Block() returns message when block button pressed

@JohnFu11er
Copy link
Collaborator

A couple of questions for consideration:

  • Will the blocking feature be available to Player and AI character types?
  • Can the character block while in the air?
  • If the character is on the ground, can they move while blocking? Movement in this case would be described as the addition of any horizontal force.
  • Can the character jump while blocking?
  • Can the character dodge while blocking?
  • Can the character block during a wall slide?

@JohnFu11er
Copy link
Collaborator

Added Unity Time.time timestamp variable

  • Indicates time block button pressed (_BlockStart)

@JohnFu11er
Copy link
Collaborator

Updated CharacterBlock.cs and Character.cs

CharacterBlock.cs

  • Added a visual debug indicator to use until we get animation
  • Built variable logic for Block and BlockReset
  • Changed BlockInput to look for a constant press of the block button
  • Player can hold button as long as they want, but resets on duration
  • Made cooldown timer function to stop block spamming

Character.cs

  • Added block variable section

@JohnFu11er
Copy link
Collaborator

Will talk characteristics of block gameplay at the meeting Thursday night.

@JohnFu11er
Copy link
Collaborator

JohnFu11er commented Nov 4, 2021

Found bug (resolved 11/2/2021)

  • If you try to spam by pressing the key over and over, it will activate the block reset on each release of the key.

@JohnFu11er
Copy link
Collaborator

Next Steps

  • Get with the art team for ground block animation. Single key frame should work.
  • Determine if there will be an air block animation. Single key frame should work, or it can just use the jumping animation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants