# ============================================================
# Gym 10.1 — Positions & Presets
# ============================================================
# Demonstrates all preset positions and manual positioning.
# ============================================================

# ---- Clear the stage ----
leave --All--

Advisor (pl5): Let's start with the basics — character positions.

# ---- Join at each preset position ----
join Miko (neutral) left [animation="Fade In"]
Miko (neutral): I'm on the left.

join Advisor (pl5) center [animation="Fade In"]
Advisor (pl5): I'm in the center.

join Merchant (happy) right [animation="Fade In"]
Merchant (happy): And I'm on the right!

[wait time="1.0"]

Advisor (pl5): Those are the three main presets: left, center, right.

# ---- Show leftmost/rightmost ----
leave --All--

join Miko (smile) leftmost [animation="Fade In"]
Miko (smile): Now I'm at leftmost — further to the edge!

join Advisor (pl5) rightmost [animation="Fade In"]
Advisor (pl5): And I'm at rightmost — the far right edge.

[wait time="1.5"]

Advisor (pl5): Available presets: leftmost, left, center, right, rightmost.

# ---- Manual positioning ----
leave --All--

join Miko (joy) pos=x0.15y0.5 [animation="Fade In"]
Miko (joy): I'm manually positioned at x=0.15!

join Advisor (pl5) pos=x0.85y0.5 [animation="Fade In"]
Advisor (pl5): And I'm at x=0.85 — no preset needed.

[wait time="1.5"]

Advisor (pl5): Use pos=xY for precise control over x/y coordinates.
Advisor (doubt): Values are relative to viewport: 0=left, 0.5=center, 1=right.

# ---- Z-Index (stacking order) ----
leave --All--

Miko (neutral): Next up — z-index controls who appears in front.

join Miko (neutral) center [animation="Fade In" z_index="2"]
Miko (neutral): My z_index is 2 — I should be on top.

join Advisor (pl5) center [animation="Fade In" z_index="1"]
Advisor (pl5): My z_index is 1 — I'm behind Miko.

[wait time="1.5"]

Advisor (doubt): Higher z_index = visually in front. Important when\
characters overlap.

join Merchant (happy) center [animation="Fade In" z_index="3"]
Merchant (happy): z_index 3! I'm on top of everyone!

[wait time="1.5"]

Merchant (happy): Z-index is Dialogic's own sorting — not Godot's native z_index.

# ---- Clean up and return ----
leave --All--

[wait time="0.5"]

jump gym10_main/menu
