← Pixel Dreamer Studio

Make a harvested crop pop out in an arc

One tween for moving across, a second one for up and then down.

Use two tweens that start on the same frame: one moves the crop across the ground with set_parallel(true), the other moves it up and then down, one step after the other. In our Godot 4.7 test, putting all three steps in one parallel tween kept the item on the ground the whole way (highest point 0.00 m), and chaining them in one tween slid it across first and only then hopped it up and down. With two tweens it reached 1.00 m exactly halfway across and landed on the target to the millimetre.

An orange carrot shape traced over many frames. Left: it slides flat along the dark soil. Right: it rises in a smooth arch and comes down on the other side
Godot 4.7, every frame of the move drawn on top of each other. Left: one tween with set_parallel(true). Right: the script below.

The code

Add this node anywhere in your level and call pop(crop, landing_point) when the player harvests. height is in metres above the higher of the two points and time is the flight in seconds. It returns the up-and-down tween, so await pop(crop, spot).finished tells you when the crop has landed and can go into the inventory.

extends Node3D
## Makes a harvested crop pop out of the ground, fly in an arc and land with a small squash.
## Add this node anywhere in your level and call pop(crop, landing_point).

@export var height := 1.0  ## metres above the higher of the two points
@export var time := 0.6  ## seconds in the air


func pop(item: Node3D, to: Vector3) -> Tween:
	var from := item.global_position
	var top := maxf(from.y, to.y) + height
	item.scale = Vector3.ONE * 0.3  # starts small, as if it came out of the soil

	# across the ground at a steady speed, and grow to full size on the way up
	var across := create_tween().set_parallel(true)
	across.tween_property(item, "global_position:x", to.x, time)
	across.tween_property(item, "global_position:z", to.z, time)
	across.tween_property(item, "scale", Vector3.ONE, time * 0.4).set_trans(Tween.TRANS_BACK).set_ease(Tween.EASE_OUT)

	# up, then down: a second tween, because these steps must run one after the other
	var arc := create_tween()
	arc.tween_property(item, "global_position:y", top, time * 0.5).set_trans(Tween.TRANS_QUAD).set_ease(Tween.EASE_OUT)
	arc.tween_property(item, "global_position:y", to.y, time * 0.5).set_trans(Tween.TRANS_QUAD).set_ease(Tween.EASE_IN)
	# squash on landing, then back to normal
	arc.tween_property(item, "scale", Vector3(1.3, 0.7, 1.3), 0.06)
	arc.tween_property(item, "scale", Vector3.ONE, 0.2).set_trans(Tween.TRANS_BACK).set_ease(Tween.EASE_OUT)
	return arc  # await pop(...).finished to know when it has landed

What we measured

A small box going from (0, 0, 0) to (2, 0, 0), 0.6 seconds in the air and 1.0 m high. We read its position and scale every frame.

Two runs gave the same numbers.

Why it takes two tweens

A Tween plays its steps one after the other. set_parallel(true) makes every step start at once, which is what you want for x and z, but up and down have to happen in order. Two tweens created on the same frame give you both: they run side by side, and each keeps its own order.

What to change

Ready-made farm effects: Farming & Harvest VFX for Godot 4 has 23 presets in Stylized and Retro PSX looks, including harvest bursts for carrots, berries and wheat, a Ready to Harvest sparkle and a Giant Crop reward.

Tested in Godot 4.7 with the Compatibility renderer.

Ready-made: Farming & Harvest VFX for Godot 4 has 23 ready-made farm effects in Stylized and Retro PSX looks, including harvest bursts for carrots, berries and wheat, a Ready to Harvest sparkle and a Giant Crop reward.

More how-tos for Farming & Harvest VFX for Godot 4: Pick the growth image so the ripe one shows exactly when the crop can be picked · A sprinkler that waters a round patch

More how-tos: Game feel