Thanks! Turns out I had my actors in the wrong order in my scene...Took me a while to figure that out. Didn't realize it mattered!
Meganegora
Recent community posts
Finally got it to work lol. I didn't realize the order of the actors in the scene mattered. Kept getting undefined errors that didn't make a lot of sense to me. So when i rearranged my actors I was shocked to see this guy run across the field.
https://gfycat.com/YearlyPhonyAfricanporcupine
Getting an undefined area when he reaches his destination but I think I can work it out.
Pretty new to typescript. Trying to figure out how I would access the functions in a player behavior in another script? I have player added to a game namespace like the paceman tutorial:
namespace Game {
export let initMap: initMapBehavior;
export let player: playerBehavior;
export let score: number;
export let won: boolean;
}
I was hoping I would access my player functions from other scripts by doing something like
Player.jump
But I'm getting an identifier expected error.