Move Object issue

  • #1, by DilatedMonday, 23. March 2015, 09:06 10 years ago
    Hey dudes!

    I feel like I'm that guy, but here is another weird issue. Not sure exactly whats the problem, and I've noticed its happened in varying degrees to to other parts of the game which employed Move Object.

    Alright so when I set up a move object action to bring and object onto the screen, after doing it a couple of times it will not go to consistent position. (I've also noticed it happens when the game lags slightly)

    http://i.imgur.com/Ok9OhHz.jpg



    And here is the video of what happens
    https://www.youtube.com/watch?v=yMqVus_EpH8&feature=youtu.be

    Initially I thought it was that when I activated one move action, it activated the other action before it finished, thus making it move to a different position. I tried it with giving 2 seconds between both actions, still has the same issue.

    POSSIBLE THEORY WHY ITS NOT WORKING
    My only thought now its got something to do with the pause actions I've set up (I thought it might be an issue with the pause 0 ms, but changed that to longer, no difference though). I found that the object won't move unless I put that action there, is there something else I can do?

    Thanks for all your guys help <3

    Forum Fan

    149 Posts


  • #2, by afrlmeMonday, 23. March 2015, 11:51 10 years ago
    I will read this thread properly a bit later on. Bit busy at the minute. I'd just like to point out 1 slight issue I spotted in attachment 2. You didn't close off your if query. You should always close them off with the end if action part. There should be the same amount of end if as if's...

    Imperator

    7285 Posts

  • #3, by DilatedMonday, 23. March 2015, 12:07 10 years ago
    Thanks dude! I'll try that out. Probably the most customised gameplay in Paradigm I've made so far, so I'm pretty nooby at it still, appreciate the help!

    Look forward to see if you spotted anything else.

    Forum Fan

    149 Posts

  • #4, by bobby23Monday, 23. March 2015, 12:08 10 years ago
    Have you tried increasing the pause ?

    Great Poster

    265 Posts

  • #5, by DilatedMonday, 23. March 2015, 12:15 10 years ago
    Yeah, I actually thought I fixed it, but after a few more activations of the sliding action, it moved in the wrong position still even with longer pauses. Thanks though.

    Forum Fan

    149 Posts

  • #6, by afrlmeMonday, 23. March 2015, 14:27 10 years ago
    Hmm not really seeing anything at a glance at the screenshots. To be honest I'm not keen on the move object action part as it uses offset instead of coordinates. It's far easier to move animations instead.

    By the way, in the next version of Visionaire Studio, there is a new move object action part which allows you to move an object to specified coordinates instead of using offset. Much simpler.

    You could try using Lua script to move the object instead of the action part?
    Objects["object_name"]:to(150, {ObjectOffset = {x = 1920, y = 0}, easeQuintOut) -- easing parameter is optional & can be changed.
    

    Imperator

    7285 Posts

  • #7, by DilatedMonday, 23. March 2015, 15:12 10 years ago
    Thanks dude.

    Ah yes, coordinates would be so much more useful! l look forward to the update.

    I tried the script, doesn't seem to make the object budge for some reason, tried to call it at beginning of screen, and via a key binding, no dice?

    Objects["Dialogue_Options"]:to(150, {ObjectOffset = {x = 1920, y =0}, easeQuintOut)

    Copied it exactly and inputed "dialogue_options" which is the name of the object. Even tried SetPosition as well instead of to, still no dice. Is there something I'm missing?

    Forum Fan

    149 Posts

  • #8, by afrlmeMonday, 23. March 2015, 15:27 10 years ago
    Yeah I wasn't 100% sure about the script I wrote. It was off the top of my head.

    Ok It's not working because I forgot to add another } to the script.
    Objects["Dialogue_Options"]:to(150, { ObjectOffset = {x = 1920, y = 0} }, easeQuintOut)
    

    Imperator

    7285 Posts

  • #9, by DilatedMonday, 23. March 2015, 15:34 10 years ago
    Still no dice?

    Forum Fan

    149 Posts

  • #10, by DilatedMonday, 23. March 2015, 15:52 10 years ago
    So I looked through the wiki and used this script your wrote earlier instead.

    http://wiki.visionaire-tracker.net/wiki/MoveObj_(CMS)

    seems to work, going to try this tomorrow morning once I get some sleep.

    Thanks for your help, do you have any donations set up man, if you don't, you certainly deserve one from all the help you give the community haha.

    Forum Fan

    149 Posts

  • #11, by afrlmeMonday, 23. March 2015, 15:52 10 years ago
    Ah might not work in current public build. I'm not sure what functions & / or shorthand script works.

    Hmm you could use the startObjectTween() function, but it's a little more complicated than to().

    Try this workflow function I created a while back that uses the startObjectTween() method.

    Imperator

    7285 Posts