(Repost) Wie benutze ich DataStructure? / How to use DataStructure?

  • #10, by NoComWednesday, 28. May 2014, 12:56 10 years ago
    ok nur damit ich das richtig verstanden habe, das was in der letzten Spalte in der Data Structure steht, muss vor das geschrieben werden was ich in der zweiten spalte steht?
    Je nachdem unterschieden ob es ein Value (V) oder ein String (S) ist.
    Damit wird mir so einiges klar :O

    Jetzt nochmal zu meinen Script, ich denke mal, es funktioniert jetzt, nach deiner korrektur, richtig, aber das ist nicht die funktion die ich suche.
    (nachdem ich mir den punkt ausgeben habe lassen, hab ich gemerkt, dass da iwas nicht stimmt)
    anscheinend verschiebt er dort den punkt, an dem das objekt seinen ausrichtungspunkt hat. ich will aber das Bild des kulissenobjekts verschieben. Ich denke mal, das ObjectPosition dann das falsche ist.
    Muss das dann mit dieser snoopanimation gemacht werden?

    p.s. Tschuldigung das ich da oben etwas Pissy klang, aber iwann wird sowas einfach frustierend xD

    p.p.s. wollte das eig. vor AFRLme posten, hab nur vergessen auf senden zu drücken xD
    Danke für die Hilfe, das bringt mich sicher weiter ^^

    Newbie

    24 Posts


  • #11, by afrlmeWednesday, 28. May 2014, 13:07 10 years ago
    The V/S thing in the last column actually means:

    • V = the data will be stored inside of the .ved file
    • S = the data will be stored inside of a save file



    A field with Storage 'V' is saved in the ved-file. If there is a 'S' in this column then this field is stored in savegames.


    Could you please tell me in English, what you are wanting to script?

    Imperator

    7278 Posts

  • #12, by NoComWednesday, 28. May 2014, 15:07 10 years ago
    Yes i want to script a moving Object.
    Like the sliding Interface as shown in the wiki
    like this one:
    http://wiki.visionaire-tracker.net/wiki/Deponia_Based_Slidin...

    and yeah at the moment i'm working on a smooth movement, but it won't work that well, because lua doesn't have any sleep function. is there a function in visionair or what would you do?

    Newbie

    24 Posts

  • #13, by afrlmeWednesday, 28. May 2014, 18:00 10 years ago
    You can actually use the getTime() function to generate a sort of pause... Check out the example on this page I wrote in the wiki.

    Alternatively you could create a loop inside of a called by other action inside of the vs editor with the jump to x action part action & then inside of that create an if query & a condition... something like:

    if condition[pause] is false
    change condition[pause] to true
    pause x time
    do some actions or set a condition or something
    change condition[pause] to false
    jump to action part #1
    end if

    this is just a really quick example of some action parts but you could combine both so that only the stuff you want to do via the lua script only works if a condition or value equals some specific thing. this is one way to add additional control over the speed that a script should be performed, that & by adjusting the amount of pixels to move the object (animation) by.

    by the way it is VAnimationCurrentPosition that allows you to move an animation & not VAnimationPosition. Don't ask me why there are 2 animation position tables, as I don't know.

    By the way, here is a script by Divo, which shows the moving of both an objects polygon & the active animation associated with the linked object.

    Imperator

    7278 Posts

  • #14, by NoComThursday, 29. May 2014, 11:35 10 years ago
    Thanks, i'll try that grin

    Newbie

    24 Posts