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

prefab spawning ability #295

Open
poetahto opened this issue Apr 21, 2023 · 0 comments
Open

prefab spawning ability #295

poetahto opened this issue Apr 21, 2023 · 0 comments
Assignees
Labels

Comments

@poetahto
Copy link
Member

This is a generic ability for spawning objects where the mouse is positioned.

We can reuse this for several similar monster abilities, like...

  • Earth Wall Block
  • Rock Platform / Stairs
  • rain / hail
  • water geyser
  • whirlpool
  • lava pool spawn
  • fire rain

In order to support all these abilities, the ability should do the following:

  1. Expose an AssetReference to the inspector, so some prefab can be assigned.
  2. Expose an action point cost variable to the inspector
  3. Expose a max range variable to the inspector
  4. When the player uses left click, instantiate the prefab at the current mouse position and spend the action points.
  5. Ensure that the distance between the mouse position and the user is clamped to max range.
@poetahto poetahto converted this from a draft issue Apr 21, 2023
@poetahto poetahto self-assigned this Apr 28, 2023
@poetahto poetahto moved this from Todo to Done in Programming Task Board Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant