how-to-add-drag-to-shoot-slingshot-controls-to-my-game
No description provided.
No description provided yet.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2flickShot gives a game the "pull back and let go" shot: a mini golf putt, a pool cue, a curling slide, a paper toss, an angry-birds fling or a basketball flick. The player presses on or near the ball, pulls, sees an aim line and a power meter, and lets go. The ball flies. It works the same on a phone (touch), a desktop (mouse) and a controller (left stick aims, hold A to charge, B cancels). Your game writes one line to get it, plus one listener if it wants to count shots.
How to use flickShot to add drag-to-shoot / slingshot shot controls to a game: attach FlickShot to a physics ball, hear onShot (direction, power 0..1, impulse in N·s), switch the aim style (dotted, arrow, rubber band, arc, ghost ball, laser, chevrons, bounce dots), power display (bar, ring, fill, segments, numeric), input mode (drag back, drag forward, hold to charge, flick), look and feel preset with one setting each, cancel by sliding back onto the ball, gamepad aiming, turns and waiting for rest, blocking other input with isAiming, and how each player shoots only their own ball in multiplayer.Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.