Move objects in the scene

  • #1, by MathieuWednesday, 11. December 2013, 10:52 7 years ago
    Hi,

    I have a small question ...
    I am not able to find the action that can define a change in the position of objects.
    I just want to move objects from a point x to point y and thus create an animation. Is this possible?

    For example, my character can push a plant, and I want this plant move to the right, but with an animated move.

    I hope I'm understandable.
    thank you

    Newbie

    38 Posts


  • #2, by afrlmeWednesday, 11. December 2013, 12:38 7 years ago
    the simplest method would be to draw a walking animation of your character pushing the plant & then have 2 objects on the scene, 1 containing the plants start location & the other containing the plants finish location.

    the idea in itself is simple enough. when you interact with the plant then you quickly hide the initial plant by changing a condition value & switch to a character outfit containing the plant walking animation & then begin a cutscene to prevent the player from interacting with the game while the character moves the plant & then when character reaches its destination: change another condition to show the end plant object & then switch back to original character outfit & end cutscene.

    moving actual objects in VS is very tricky as you would need to use lua either way to be able to move the animation image & the object polygon area. you can't move static object images only animations; hence why the method I mentioned above is simpler.

    Imperator

    6846 Posts

  • #3, by MathieuWednesday, 11. December 2013, 13:12 7 years ago
    OK thank you, I was thinking find a solution like that, create an object with an animation and place it when the action is starting.
    It's a pity not to simply move objects with coordinates within LUA.

    I would have soon new questions smile

    Newbie

    38 Posts

  • #4, by afrlmeWednesday, 11. December 2013, 14:19 7 years ago
    you can move them with lua but only active animations assigned to the object & moving the objects polygon area is also possible as I have seen it done in Divo's example drag & drop script; but as I said: it's not simple as it requires a loop handler & various if queries to check position/status of the object etc.

    Imperator

    6846 Posts

  • #5, by MathieuWednesday, 11. December 2013, 16:11 7 years ago
    sorry but I have another question smile

    I would like to create an imaginary line (indicating the coordinates) that will define if the character goes beyond this line, action begins.
    Should I use LUA too?

    Newbie

    38 Posts

  • #6, by MathieuWednesday, 11. December 2013, 16:19 7 years ago
    thank you for precision for object movement with LUA!

    Newbie

    38 Posts

  • #7, by afrlmeWednesday, 11. December 2013, 16:44 7 years ago
    You can use the action area system found under the way system for scenes to determine what should happen if x character enters/leaves said action area.

    no need for lua.

    thank you (me) for what?

    if you want to see how to move animations with lua then check out my sliding interface script or elevator mechanics script in the community wiki via the menu at the top of the website. they should give you an idea of how it is done.

    Imperator

    6846 Posts

  • #8, by MathieuWednesday, 11. December 2013, 16:50 7 years ago
    yes thank you, you.
    I forgot the action area, but I saw it!

    Newbie

    38 Posts

Write post