Skip to reading
Adventure Mechanics & Effects

Put the high and low contacts on the drawing

Edition 0.86.3.4

Build authored boxing, camera moves, weather, attachments, inspectable objects, a radio and two-object puzzles using the existing adventure tools and scripts.

Download PDFView illustrations

LIVE SPARRING / 2D SETUP

Attach-point fields in the editor. This glove_high mark uses the 64-pixel drawing described below. The first two Position boxes are X and Y. The contact radius is four room pixels.

01. In Asset Designer select the sprite image used by the hero. Under Add Attach Point, add badge on the upper chest and belt at the waist. For each row use Place on Object and click the spot in the preview. Leave both enabled. The names are simply two places the opponent can reach.

02. Add glove_high where the extended glove ends in the high punch drawing. Add glove_low where it ends in the low drawing. These are two points on the same fighter. The script picks one during the few frames when that particular punch can connect. A drawn hand needs both positions because the pixels change inside the frame.

03. If the preview shows an entire sheet, measure inside a single frame. For a sprite-UV point, X and Y run from 0 to 1 across that frame. For example, a glove at (48, 20) in a 64 × 64 frame is X = 0.75, Y = 0.3125. Place a point on the image first, then enter those values in its position fields. Use consistent frame sizes and foot positions.

04. Repeat all four points on the porter’s art. Try a contact radius of 4 pixels for each glove and 6 pixels for each body mark. At normal scale their centers can be 10 room pixels apart and still touch. Apply and save. A flipped sprite mirrors its image points. If your left-facing frames are separately drawn, check their contact positions too.

Check it in play. Line up the feet in Scene Designer. On each extended drawing, the glove should meet the other actor’s badge or belt. The chest and belt circles should stay distinct. A visible gap at full reach means you should first bring the actors closer. Continue on page 6.

Page 4 of 29Permalink
Go to page