Commit 78ceff3
authored
checkpoint: Make player spawn in front, not behind (#2153)
The player spawns at the position of the SpawnPoint inside this node,
previously identical to the Checkpoint node itself.
As a result, on respawn the player and the checkpoint have the same
y-sort level, and their position in the scene tree determines which one
is displayed in front of the other. The player is earlier in the scene
tree in most scenes, so the later-in-tree checkpoint wins.
Move the SpawnPoint one pixel downwards, so that the player "wins".
Also offset the sprite a little more. This breaks our normal model where
the origin of the scene is aligned with the middle of the sprite's
shadow. However the witch is a bit of a strange shape - the yarn is way
below it - and I think that sorting behind the witch as soon as you walk
above the yarn (as with this change) looks better.
Resolves #13321 parent 9a949de commit 78ceff3
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
0 commit comments