Issue with script in animations

  • #1, by shin-megamiSunday, 31. October, 22:11 A month ago
    Hi!

    When I run the game from the editor, everything ist okay, but when I export it to a Windows Build, LUA-Scripts which have been placed in the animations of a character don't seem to load.
    Have I forgotten something or is it a bug?

    Thanks in advance!

    Newbie

    7 Posts


  • #2, by afrlmeMonday, 01. November, 12:25 A month ago
    What sort of scripts are you writing inside of your character animations? Can you provide an example of one? & are none of them being executed?

    Imperator

    7042 Posts

  • #3, by shin-megamiMonday, 01. November, 15:19 A month ago
    Hi afrlme!

    I tried with a simple script: works fine in the editor, but the sound won't get played when I'm exporting the game to a windows .exe file.

    Thanks for the help!

    Newbie

    7 Posts

  • #4, by afrlmeMonday, 01. November, 15:56 A month ago
    Ah ok, I see the issue. You need to include vispath in the link to the sound file to tell the engine to include it when you export the game.

    example: "vispath:path to sound folder/example.ogg"

    Imperator

    7042 Posts

  • #5, by shin-megamiMonday, 01. November, 17:14 A month ago
    Thanks a lot! It works and you're awesome!

    Newbie

    7 Posts

  • #6, by afrlmeMonday, 01. November, 17:26 A month ago
    No problem. At least now you know what you need to do to include sound files. wink

    Imperator

    7042 Posts

Write post