Bewegung und Scrolling in der z-Achse möglich?

  • #2, by SimonSSaturday, 14. December 2013, 20:29 11 years ago
    n'abend,

    Ich bin mir jetzt unsicher, ob du die y-Achse meinst, die z-Achse reicht in den Raum hinein, da kann man logischer auf 2D-Bildern nicht hinscrollen. Mit der y-Achse kannst allerdings analog verfahren, nimm ein Hintergrundbild, das höher als die Höhe der Auflösung ist und fertig.

    Gruß
    Simon

    Thread Captain

    1590 Posts


  • #3, by SimonSSaturday, 14. December 2013, 23:15 11 years ago
    Wir überlegen an einer Funktion den Ausschnitt zu verändern, womit also auch zoomen könnte, für die meisten Anwendungsbereiche macht die Funktion wenig Sinn, da reingezoomt es sehr matschig aussieht. Ansonsten gibts die gewünschte Funktion zurzeit nicht. Alles was du machen könntest wär halt das Hintergrundbild in einer Animation zu haben und dann per Lua zu skalieren (AnimationSize).

    Thread Captain

    1590 Posts

  • #4, by afrlmeSaturday, 14. December 2013, 23:17 11 years ago
    hmm I think he means so you could zoom in/out of a scene like rev soft have done in broken sword 5?

    to do that you would have to scale everything at the same time which you could (possibly) do with lua script & the stuff to be scaled would all have to be animations & not static images. you would also have to create the background as an object animation. This is theoretical thinking on my part & I imagine it would be a lot of work but you could easily do it at the beginning of a scene by making & adding it as a video.

    Imperator

    7285 Posts

  • #5, by afrlmeSunday, 15. December 2013, 13:29 11 years ago
    yeah what you are describing is what I have seen in Broken sword 5 but only at the beginning of each scene. it starts at the top of the scene & then it pans down the scene & while zooming into the characters location which creates the feel of dynamic movement in the scene. I am not sure how Rev Soft did it as there engine "Visual Theatre" is also only 2D like VS, so they either globally scaled all objects on the scene or they created a short videos to use for the scene starts.

    Yeah you could probably store all objects & character animations etc on a scene into a table with lua & then have run a for each loop in lua to scale each object up but you would need to run it inside of a mainLoop function to scale them up smoothly - I'm not sure how VS or the players computer would react to loads of things being scaled at once with lua.

    by fixed co-ordinates, do you mean for a point to zoom into? no I'm afraid not but you could just pan to x,y position & control the point it would zoom into that way... & as I said: my idea/suggestion was completely theoretical & I have no clue if it will/would work.

    Imperator

    7285 Posts

  • #6, by afrlmeMonday, 16. December 2013, 14:01 11 years ago
    yeah but I was saying that you can't fix a position on z only x & y - so you would have to control screen position manually.

    As for the performance part... I think it would depend on the computer of the person playing the game. For instance I have written quite a large dynamic sound control script for Thomas (marvel) that can be used in the upcoming release of VS - it worked on his computer (far as I know), but it had issues running correctly on the iPad I think.

    what you are wanting to do would be a complicated script to write, either way!

    Imperator

    7285 Posts

  • #7, by afrlmeMonday, 16. December 2013, 16:58 11 years ago
    haha, yeah me too... but only if the thing in question makes to me; albeit from a logical point of view, of course!

    Imperator

    7285 Posts