One of the enemies in my game is a bat. The bat is asleep until it "detects" you (when you walk close to it).
At this point it "wakes up" and flies into you.
It all works great normally, but when I exported it, the bats don't move as they should. That is to say, they don't move at all!
If it matters, how my bat work is this:
it has two animations- "open" and "fly"
it starts with it's animation stopped on "open", but when it "detects" you, the animation resumes
after the animation ends (in which the bat opens its eyes + spreads wings), it changes animation to "fly"
now the bat's angle is set (via draw actor) to follow the player and it's directional velocity is set to 2
Working properly the bat will fly at the player (recoiling after it hits) and home in; it does this fine in game mode, but when exported they change animations
properly, but don't move at all
I doubt there is anything wrong with my code as it does work normally. Does the exported version of a game work differently in how it uses variables or something?
Is this a bug or did I not set something up right? Anybody experienced something like this? If this doesn't make sense, I can explain better