Skip to content
This repository has been archived by the owner on May 1, 2021. It is now read-only.

Coin flipping! #4

Open
Ionaru opened this issue Oct 18, 2016 · 0 comments
Open

Coin flipping! #4

Ionaru opened this issue Oct 18, 2016 · 0 comments

Comments

@Ionaru
Copy link
Owner

Ionaru commented Oct 18, 2016

I want a player to be able to flip a dime to get heads or tails as a result

How I imagine this:

  • Player holds right-click while holding a dime, the dime will then do the bow-pull animation
  • When the player releases right-click, the dime will vanish from the player's inventory (imagine it being in the air), the time it stays gone depends on the time the player held right-click.
  • After an X amount of time, the dime will reappear in the player's inventory (catching), and the word "Heads" or "Tails" will be printed in the chat depending on random chance.

I shelved this feature originally because I had issues getting the vanishing-reappearing to work bug-free. When a player switched inventory slots or took another item in their hand, the dime would sometimes not reappear, or duplicate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant