# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/create-platformer-02-moving-entities-using-animations-in-scene-graph-in-unreal-editor-for-fortnite
# Local doc: epic-docs/documentation/en-us/fortnite/create-platformer-02-moving-entities-using-animations-in-scene-graph-in-unreal-editor-for-fortnite.md
# Section: Building Keyframes with Code
# Construct a single keyframe which animates between the Source and Destination entity using the given easing function over a set duration.
ConstructKeyframe<private>(Source:entity, Destination:entity, EasingFunction:easing_function, Duration:float)<transacts><decides>:[]keyframed_movement_delta=
var SourceTransform:(/Verse.org/SpatialMath:)transform = Source.GetGlobalTransform()
var DestinationTransform:(/Verse.org/SpatialMath:)transform = Destination.GetGlobalTransform()
Verse Library
verse
18 Building Keyframes With Code
Calculates movement deltas between two entities to generate animation keyframes with easing and duration.
extracted-snippets/documentation/en-us/fortnite/create-platformer-02-moving-entities-using-animations-in-scene-graph-in-unreal-editor-for-fortnite/18-building-keyframes-with-code.verse