Raum wechsel

  • GM 7

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

  • Raum wechsel

    huhu
    Also ich hab wirklich schon alles durchgeguckt mit Hilfe der Sufu,aber habe nichts gefunden ,deswegen wollte ich hier nachfragen ob jemand mir genau sagen könnte wie ich von die Räume wie in z.b Zelda wechseln kann in ein Haus rein und rein usw

    danke
    GM oldie ich bin :troll:

    Spiel-Referenzen : 8 Spiele Hier 2 Screens der Rest ist verschollen :c
  • ja danke hat geholfen ,aber ich hab noch ein Problem mit den Raum wechsel Effekte
    Ich habe Jetzt geschrieben

    GML-Quellcode

    1. newx=677
    2. newy=999
    3. traslation_step=1000
    4. traslation_color(c_aqua)
    5. room_goto(newroom)


    wenn ich nun den Raumwechsle passiert überhaupt nix ^^
    GM oldie ich bin :troll:

    Spiel-Referenzen : 8 Spiele Hier 2 Screens der Rest ist verschollen :c
  • Hm, seltsam, es kommt nicht mal ne Fehlermeldung? Da war nämlich ein grausamer Rechtschreibfehler drin ^^
    // Korrektur
    transition_steps=1000
    Und nun zum Problem:

    Bevor du einen Raumübergang nutzen kannst, musst du ihn erstmal mit transition_kind definieren, siehe hier:

    Spoiler anzeigen
    Transitions

    When you move from one room to another you can select a transition. To set the transition to the next frame you must set the variable called transition_kind. If you assign a value larger than 0 to it the corresponding transition is used for the next room transition. It only affect the next transition. After this the value is reset to 0, which indicates no transition.
    transition_kind Indicates the next room transition. You can use the following builtin values
    0 = no effect
    1 = Create from left
    2 = Create from right
    3 = Create from top
    4 = Create from bottom
    5 = Create from center
    6 = Shift from left
    7 = Shift from right
    8 = Shift from top
    9 = Shift from bottom
    10 = Interlaced from left
    11 = Interlaced from right
    12 = Interlaced from top
    13 = Interlaced from bottom
    14 = Push from left
    15 = Push from right
    16 = Push from top
    17 = Push from bottom
    18 = Rotate to the left
    19 = Rotate to the right
    20 = Blend the rooms
    21 = Fade out and in
    transition_steps Indicates the number of steps in the transition. The more steps, the longer the transition takes. Default is 80.
    transition_define(kind,name) You can actually create your own transitions. To this end you must define a script (possibly in an extension package) to do the transition. With this function you can then add the transition to the system. kind is the index of the transition (either a new one or an existing transitions). name is the name of the script. Note that the name of the script is a string! So there must be quotes around it. Note that this is really advanced stuff. The script must take five arguments: a surface with the image of the previous room, a surface with the image of the next room, the width of the surfaces, the height of the surfaces, and the fraction of the transition (between 0 and 1). It must then draw the image using the two surfaces.
    transition_exists(kind) This function returns whether a transition of the indicated kind exists.


    Kann's sein, dass du das vergessen hast?
    (Aber ich kann ja auch nur raten, du solltest uns vielleicht mal etwas mehr Informationen geben ;) )


    EDIT @ Post unter mir: Achso ^^
    Und nunja, wenn man minimalistisch denkt, reicht die Information ja auch - ich denk halt nicht minimalistisch :P

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von Irrenhaus3 ()