GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FR] Event Keyframes · Issue #352 · Animated-Java/animated-java

[FR] Event Keyframes #352

New issue
Copy link
New issue
Copy link
Open
Open
[FR] Event Keyframes#352
Copy link
Assignees
SnaveSutit
Labels
✨ EnhancementNew feature or requestNew feature or request🔌 Plugin ModeThis issue pertains to blueprints in plugin modeThis issue pertains to blueprints in plugin mode

Description

@Dearliet
Dearliet
opened on Jan 9, 2025
Issue body actions

Image

Event keyframes are special markers in an animation that signal when certain actions should occur. They allow API users to respond to key moments in the animation with custom logic, such as playing sounds, applying effects, or triggering other actions. For example, you might create an event keyframe named impact to indicate when a character lands from a jump. You can then listen for this event using the API and define the custom logic that should execute when the animation reaches that point.

val blueprintManager = AnimatedPaperAPI.blueprintManager
val blueprint = blueprintManager.getBlueprint("my_blueprint") ?: return
val animation = blueprint.getAnimation("jump") ?: return

animation.onEvent("impact") { rig ->
		// Custom logic for when the impact event occurs
		// Inflict 5.0 damage to all players in a 10.0 radius.
    rig.world.getNearbyEntitiesByType(Player::class.java, rig.location, 10.0)
        .forEach { it.damage(5.0) }
}

Event keyframes should only be accessible when plugin mode is enabled, ensuring that this functionality is utilized in the appropriate context.

Activity

  1. Dearliet
    added
    🔌 Plugin ModeThis issue pertains to blueprints in plugin modeThis issue pertains to blueprints in plugin mode
    on Jan 9, 2025
  2. Dearliet
    assigned
    SnaveSutit
    on Jan 9, 2025
  3. SnaveSutit
    added
    ✨ EnhancementNew feature or requestNew feature or request
    on Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @SnaveSutit
    SnaveSutit

Labels

✨ EnhancementNew feature or requestNew feature or request🔌 Plugin ModeThis issue pertains to blueprints in plugin modeThis issue pertains to blueprints in plugin mode

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.