Fix actors not appearing on stage right

This commit is contained in:
2023-03-08 09:02:14 -07:00
parent 6efd3b1973
commit 31c5b26761
3 changed files with 3 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ typedef AutoZConfig = {
interface Director<Set:Cloneable<Set>, ScreenPosition, Actor, Sound, Song, Prop, VoiceTrack> {
var movie(default, default):Movie<Set, ScreenPosition, Actor, Sound, Song, Prop, VoiceTrack>;
var autoZConfig(default,null):Option<AutoZConfig>;
function autoZConfig():Option<AutoZConfig>;
function showSet(set:Set, time:SceneTime, perspective:ScenePerspective, appearance:Appearance, cc:Continuation):Void;
function hideSet(set:Set, cc:Continuation):Void;
function showCharacter(character:Character<Actor>, appearance:Appearance, cc:Continuation):Void;

View File

@@ -10,6 +10,7 @@ import hollywoo.Scene;
import hollywoo.Director;
import haxe.Json;
import uuid.Uuid;
import haxe.ds.Option;
using kiss.FuzzyMapTools;

View File

@@ -280,7 +280,7 @@
(hollywooMethod autoZProcess false [:StagePosition position :Continuation cc]
// handle auto z recursively
(ifLet [(Some (objectWith zPerLayer frontLayer)) director.autoZConfig]
(ifLet [(Some (objectWith zPerLayer frontLayer)) (director.autoZConfig)]
{
(doFor =>name otherCharacter .characters (_currentScene)
(when (and (= position.x otherCharacter.stagePosition.x) (= position.y otherCharacter.stagePosition.y) (= position.z otherCharacter.stagePosition.z))