Visionaire and Lua against AGS script

  • #10, by SimonSFriday, 27. February 2015, 23:25 10 years ago
    I'm currently busy with the new gui, lots of old code that needs to be rewritten, that is my priority. In the meantime there will be a bugfix release with some small updates. After that I'll look into new things. But I don't know how the priorities will lay there. We are talking about months here btw.

    I'm not sure what this code is trying to do. You can change the position of the character like that:
    local pos = Character["main"].Position
    pos.y = pos.y - 1
    Character["main"].Position = pos
    Asking from Lua if the position is inside the walk area is not possible in the current release.

    Thread Captain

    1590 Posts


  • #11, by afrlmeSaturday, 28. February 2015, 00:41 10 years ago
    You could use action areas to determine what is floor. For jumping you could use multiple conditions or a single value to determine the state of the character & to trigger jump / falling via a loop or to() function.

    Imperator

    7285 Posts

  • #12, by afrlmeSaturday, 28. February 2015, 12:31 10 years ago
    Yes but it also has limitations, I believe, such as maximum allowed resolution & set amount of channels / layers for certain things. I think the scripting language is a lot more complicated than Lua as it's based on java / c languages. I've actually no idea how hard it is to use though as I pretty much skipped over it, in favor of Visionaire Studio because I wanted access to higher resolutions.

    Imperator

    7285 Posts