Timlines - Was ist das?

  • GM 7

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Timlines - Was ist das?

    Hallo Leutz,
    Ich wollte mal Fragen was es sich eigentlich mit Timelines so auf sich hat. Mir ist schon klar dass es irgendwas mit Zeit zu tun hat aber... Was ist das eigentlich und für was dient es gelegentlich?
    Danke im voraus
    Cedric
    ********
    :gmlove:
  • Wie lange müssen wir eigentlich noch predigen, dass man vor dem Posten wenigstens mal die Hilfe lesen soll, bis es endlich mal jemand tut?

    Time Lines
    In many games certain things must happen at certain moments in time. You can try to achieve this by using alarm events but when things get too complicated this won't work any more. The time line resource is meant for this. In a time line you specify which actions must happen at certain moments in time. You can use all the actions that are also available for the different events. Once you create a time line you can assign it to an instance of an object. This instance will then execute the actions at the indicated moments of time. Let us explain this with an example. Assume you want to make a guard. This guard should move 20 time steps to the left, then 10 upwards, 20 to the right, 10 downwards and then stop. To achieve this you make a time line where you start with setting a motion to the left. At moment 20 you set a motion upward, at moment 30 a motion to the right, at moment 50 a motion downwards and at moment 60 you stop the motion. Now you can assign this time line to the guard and the guard will do exactly what you planned. You can also use a time line to control your game more globally. Create an invisible controller object, create a time line that at certain moments creates enemies, and assign it to the controller object. If you start to work with it you will find out it is a very powerful concept.
    Klar soweit?