Ergebnis 1 bis 5 von 5

Thema: [2k3]Performance-Probleme bei AKS verringern

  1. #1

    [2k3]Performance-Probleme bei AKS verringern

    Moin.

    Ich bastel gerade an einem Spiel im Mystic Quest Look, inkl. Action Kampfsystem. Doch durch die ganzen Berechnungen ruckelt es ziemlich stark.



    3 Bilder für die Anzeige der HP, 2 Bilder für die Anzeige der MP und 4 Bilder für die Anzeige des Geldes, inkl. ständiger Berechnungen wegen AKS. Dazu noch ein Bild für einen schwarzen Rahmen um das Spielgeschehen herum (um die Auflösung eines Game Boys zu simulieren), und der Leiste selber.
    Aber das ist ja noch garnicht alles: Es kommt noch die kleine Leiste dazu, die für einen Boost-Angriff gedacht ist, plus sämtliche Schadensberechnungen bei Gegnerkontakt.
    Ich habe bisher nur die Anzeigen für die Leiste fertig gemacht, wie man sie im Screen sieht, dennoch ruckelt es bereits leicht.
    All diese Sachen werden durch ellenlange Parrallell Process Common Events angezeigt und berechnet, was enorm viel Leistung zieht.

    Kann mir irgendjemand mit Tricks helfen, diese Probleme zu lösen?
    Ich denke, dass es recht schwierig ist, Ferndiagnosen zu stellen, aber ich wüsste jetzt auch nicht, wie ich den Code hier reinstellen könnte?!
    Allgemeine Tipps sind gern gesehen.

    - Marc

    PS: Mein Rechner ist auch noch nicht so richtig veraltet: 1,6ghz mit 1GB RAM. Daran soll es doch hoffentlich nicht liegen.

    edit:

    Code:
    - SCRIPT -
    <> Comment: ---RAHMEN ANZEIGE---
    <> Show Picture: #29, GB_Mystic_Quest_Pic_Rahmen, (160, 120), Mgn 100%, Tsp 0%/0%
    <> Comment: ---LEISTE ANZEIGE---
    <> Show Picture: #30, GB_Mystic_Quest_Pic_Leiste, (160, 184), Mgn 100%, Tsp 0%/0%
    <> Comment: ----GELD BERECHNUNG----
    <> Change Variable: [22] = Money
    <> Change Variable: [23] = V[22]
    <> Change Variable: [24] = V[22]
    <> Change Variable: [25] = V[22]
    <> Change Variable: [26] = V[22]
    <> Change Variable: [23] Mod= 10
    <> Change Variable: [24] -= V[23]
    <> Change Variable: [24] /= 10
    <> Change Variable: [24] Mod= 10
    <> Change Variable: [25] -= V[23]
    <> Change Variable: [25] /= 10
    <> Change Variable: [25] -= V[24]
    <> Change Variable: [25] /= 10
    <> Change Variable: [25] Mod= 10
    <> Change Variable: [26] -= V[23]
    <> Change Variable: [26] /= 10
    <> Change Variable: [26] -= V[24]
    <> Change Variable: [26] /= 10
    <> Change Variable: [26] -= V[25]
    <> Change Variable: [26] /= 10
    <> Change Variable: [26] Mod= 10
    <> Comment: -----------------GELD ANZEIGE----
    <> Fork Condition: If Variable [23] == 0 then ...
     <> Show Picture: #31, GB_Mystic_Quest_Pic_0, (236, 179), Mgn 100%, Tsp 0%/0%
     <>
    : Else ...
     <> Fork Condition: If Variable [23] == 1 then ...
      <> Show Picture: #31, GB_Mystic_Quest_Pic_1, (236, 179), Mgn 100%, Tsp 0%/0%
      <>
     : Else ...
      <> Fork Condition: If Variable [23] == 2 then ...
       <> Show Picture: #31, GB_Mystic_Quest_Pic_2, (236, 179), Mgn 100%, Tsp 0%/0%
       <>
      : Else ...
       <> Fork Condition: If Variable [23] == 3 then ...
        <> Show Picture: #31, GB_Mystic_Quest_Pic_3, (236, 179), Mgn 100%, Tsp 0%/0%
        <>
       : Else ...
        <> Fork Condition: If Variable [23] == 4 then ...
         <> Show Picture: #31, GB_Mystic_Quest_Pic_4, (236, 179), Mgn 100%, Tsp 0%/0%
         <>
        : Else ...
         <> Fork Condition: If Variable [23] == 5 then ...
          <> Show Picture: #31, GB_Mystic_Quest_Pic_5, (236, 179), Mgn 100%, Tsp 0%/0%
          <>
         : Else ...
          <> Fork Condition: If Variable [23] == 6 then ...
           <> Show Picture: #31, GB_Mystic_Quest_Pic_6, (236, 179), Mgn 100%, Tsp 0%/0%
           <>
          : Else ...
           <> Fork Condition: If Variable [23] == 7 then ...
            <> Show Picture: #31, GB_Mystic_Quest_Pic_7, (236, 179), Mgn 100%, Tsp 0%/0%
            <>
           : Else ...
            <> Fork Condition: If Variable [23] == 8 then ...
             <> Show Picture: #31, GB_Mystic_Quest_Pic_8, (236, 179), Mgn 100%, Tsp 0%/0%
             <>
            : Else ...
             <> Fork Condition: If Variable [23] == 9 then ...
              <> Show Picture: #31, GB_Mystic_Quest_Pic_9, (236, 179), Mgn 100%, Tsp 0%/0%
              <>
             : End of fork
             <>
            : End of fork
            <>
           : End of fork
           <>
          : End of fork
          <>
         : End of fork
         <>
        : End of fork
        <>
       : End of fork
       <>
      : End of fork
      <>
     : End of fork
     <>
    : End of fork
    <> Fork Condition: If Variable [24] == 0 then ...
     <> Fork Condition: If Money >= 100$ then ...
      <> Show Picture: #32, GB_Mystic_Quest_Pic_0, (228, 179), Mgn 100%, Tsp 0%/0%
      <>
     : Else ...
      <> Erase Picture: #32
      <>
     : End of fork
     <>
    : Else ...
     <> Fork Condition: If Variable [24] == 1 then ...
      <> Show Picture: #32, GB_Mystic_Quest_Pic_1, (228, 179), Mgn 100%, Tsp 0%/0%
      <>
     : Else ...
      <> Fork Condition: If Variable [24] == 2 then ...
       <> Show Picture: #32, GB_Mystic_Quest_Pic_2, (228, 179), Mgn 100%, Tsp 0%/0%
       <>
      : Else ...
       <> Fork Condition: If Variable [24] == 3 then ...
        <> Show Picture: #32, GB_Mystic_Quest_Pic_3, (228, 179), Mgn 100%, Tsp 0%/0%
        <>
       : Else ...
        <> Fork Condition: If Variable [24] == 4 then ...
         <> Show Picture: #32, GB_Mystic_Quest_Pic_4, (228, 179), Mgn 100%, Tsp 0%/0%
         <>
        : Else ...
         <> Fork Condition: If Variable [24] == 5 then ...
          <> Show Picture: #32, GB_Mystic_Quest_Pic_5, (228, 179), Mgn 100%, Tsp 0%/0%
          <>
         : Else ...
          <> Fork Condition: If Variable [24] == 6 then ...
           <> Show Picture: #32, GB_Mystic_Quest_Pic_6, (228, 179), Mgn 100%, Tsp 0%/0%
           <>
          : Else ...
           <> Fork Condition: If Variable [24] == 7 then ...
            <> Show Picture: #32, GB_Mystic_Quest_Pic_7, (228, 179), Mgn 100%, Tsp 0%/0%
            <>
           : Else ...
            <> Fork Condition: If Variable [24] == 8 then ...
             <> Show Picture: #32, GB_Mystic_Quest_Pic_8, (228, 179), Mgn 100%, Tsp 0%/0%
             <>
            : Else ...
             <> Fork Condition: If Variable [24] == 9 then ...
              <> Show Picture: #32, GB_Mystic_Quest_Pic_9, (228, 179), Mgn 100%, Tsp 0%/0%
              <>
             : End of fork
             <>
            : End of fork
            <>
           : End of fork
           <>
          : End of fork
          <>
         : End of fork
         <>
        : End of fork
        <>
       : End of fork
       <>
      : End of fork
      <>
     : End of fork
     <>
    : End of fork
    <> Fork Condition: If Variable [25] == 0 then ...
     <> Fork Condition: If Money >= 1000$ then ...
      <> Show Picture: #33, GB_Mystic_Quest_Pic_0, (220, 179), Mgn 100%, Tsp 0%/0%
      <>
     : Else ...
      <> Erase Picture: #33
      <>
     : End of fork
     <>
    : Else ...
     <> Fork Condition: If Variable [25] == 1 then ...
      <> Show Picture: #33, GB_Mystic_Quest_Pic_1, (220, 179), Mgn 100%, Tsp 0%/0%
      <>
     : Else ...
      <> Fork Condition: If Variable [25] == 2 then ...
       <> Show Picture: #33, GB_Mystic_Quest_Pic_2, (220, 179), Mgn 100%, Tsp 0%/0%
       <>
      : Else ...
       <> Fork Condition: If Variable [25] == 3 then ...
        <> Show Picture: #33, GB_Mystic_Quest_Pic_3, (220, 179), Mgn 100%, Tsp 0%/0%
        <>
       : Else ...
        <> Fork Condition: If Variable [25] == 4 then ...
         <> Show Picture: #33, GB_Mystic_Quest_Pic_4, (220, 179), Mgn 100%, Tsp 0%/0%
         <>
        : Else ...
         <> Fork Condition: If Variable [25] == 5 then ...
          <> Show Picture: #33, GB_Mystic_Quest_Pic_5, (220, 179), Mgn 100%, Tsp 0%/0%
          <>
         : Else ...
          <> Fork Condition: If Variable [25] == 6 then ...
           <> Show Picture: #33, GB_Mystic_Quest_Pic_6, (220, 179), Mgn 100%, Tsp 0%/0%
           <>
          : Else ...
           <> Fork Condition: If Variable [25] == 7 then ...
            <> Show Picture: #33, GB_Mystic_Quest_Pic_7, (220, 179), Mgn 100%, Tsp 0%/0%
            <>
           : Else ...
            <> Fork Condition: If Variable [25] == 8 then ...
             <> Show Picture: #33, GB_Mystic_Quest_Pic_8, (220, 179), Mgn 100%, Tsp 0%/0%
             <>
            : Else ...
             <> Fork Condition: If Variable [25] == 9 then ...
              <> Show Picture: #33, GB_Mystic_Quest_Pic_9, (220, 179), Mgn 100%, Tsp 0%/0%
              <>
             : End of fork
             <>
            : End of fork
            <>
           : End of fork
           <>
          : End of fork
          <>
         : End of fork
         <>
        : End of fork
        <>
       : End of fork
       <>
      : End of fork
      <>
     : End of fork
     <>
    : End of fork
    <> Fork Condition: If Variable [26] == 0 then ...
     <> Fork Condition: If Money >= 10000$ then ...
      <> Show Picture: #34, GB_Mystic_Quest_Pic_0, (212, 179), Mgn 100%, Tsp 0%/0%
      <>
     : Else ...
      <> Erase Picture: #34
      <>
     : End of fork
     <>
    : Else ...
     <> Fork Condition: If Variable [26] == 1 then ...
      <> Show Picture: #34, GB_Mystic_Quest_Pic_1, (212, 179), Mgn 100%, Tsp 0%/0%
      <>
     : Else ...
      <> Fork Condition: If Variable [26] == 2 then ...
       <> Show Picture: #34, GB_Mystic_Quest_Pic_2, (212, 179), Mgn 100%, Tsp 0%/0%
       <>
      : Else ...
       <> Fork Condition: If Variable [26] == 3 then ...
        <> Show Picture: #34, GB_Mystic_Quest_Pic_3, (212, 179), Mgn 100%, Tsp 0%/0%
        <>
       : Else ...
        <> Fork Condition: If Variable [26] == 4 then ...
         <> Show Picture: #34, GB_Mystic_Quest_Pic_4, (212, 179), Mgn 100%, Tsp 0%/0%
         <>
        : Else ...
         <> Fork Condition: If Variable [26] == 5 then ...
          <> Show Picture: #34, GB_Mystic_Quest_Pic_5, (212, 179), Mgn 100%, Tsp 0%/0%
          <>
         : Else ...
          <> Fork Condition: If Variable [26] == 6 then ...
           <> Show Picture: #34, GB_Mystic_Quest_Pic_6, (212, 179), Mgn 100%, Tsp 0%/0%
           <>
          : Else ...
           <> Fork Condition: If Variable [26] == 7 then ...
            <> Show Picture: #34, GB_Mystic_Quest_Pic_7, (212, 179), Mgn 100%, Tsp 0%/0%
            <>
           : Else ...
            <> Fork Condition: If Variable [26] == 8 then ...
             <> Show Picture: #34, GB_Mystic_Quest_Pic_8, (212, 179), Mgn 100%, Tsp 0%/0%
             <>
            : Else ...
             <> Fork Condition: If Variable [26] == 9 then ...
              <> Show Picture: #34, GB_Mystic_Quest_Pic_9, (212, 179), Mgn 100%, Tsp 0%/0%
              <>
             : End of fork
             <>
            : End of fork
            <>
           : End of fork
           <>
          : End of fork
          <>
         : End of fork
         <>
        : End of fork
        <>
       : End of fork
       <>
      : End of fork
      <>
     : End of fork
     <>
    : End of fork
    <> Comment: ----HP BERECHNUNG----
    <> Change Variable: [27] = HP of hero #1
    <> Change Variable: [28] = V[27]
    <> Change Variable: [29] = V[27]
    <> Change Variable: [30] = V[27]
    <> Change Variable: [28] Mod= 10
    <> Change Variable: [29] -= V[28]
    <> Change Variable: [29] /= 10
    <> Change Variable: [29] Mod= 10
    <> Change Variable: [30] -= V[28]
    <> Change Variable: [30] /= 10
    <> Change Variable: [30] -= V[29]
    <> Change Variable: [30] /= 10
    <> Change Variable: [30] Mod= 10
    <> Comment: -----------------HP ANZEIGE----
    <> Fork Condition: If Variable [28] == 0 then ...
     <> Show Picture: #35, GB_Mystic_Quest_Pic_0, (132, 179), Mgn 100%, Tsp 0%/0%
     <>
    : Else ...
     <> Fork Condition: If Variable [28] == 1 then ...
      <> Show Picture: #35, GB_Mystic_Quest_Pic_1, (132, 179), Mgn 100%, Tsp 0%/0%
      <>
     : Else ...
      <> Fork Condition: If Variable [28] == 2 then ...
       <> Show Picture: #35, GB_Mystic_Quest_Pic_2, (132, 179), Mgn 100%, Tsp 0%/0%
       <>
      : Else ...
       <> Fork Condition: If Variable [28] == 3 then ...
        <> Show Picture: #35, GB_Mystic_Quest_Pic_3, (132, 179), Mgn 100%, Tsp 0%/0%
        <>
       : Else ...
        <> Fork Condition: If Variable [28] == 4 then ...
         <> Show Picture: #35, GB_Mystic_Quest_Pic_4, (132, 179), Mgn 100%, Tsp 0%/0%
         <>
        : Else ...
         <> Fork Condition: If Variable [28] == 5 then ...
          <> Show Picture: #35, GB_Mystic_Quest_Pic_5, (132, 179), Mgn 100%, Tsp 0%/0%
          <>
         : Else ...
          <> Fork Condition: If Variable [28] == 6 then ...
           <> Show Picture: #35, GB_Mystic_Quest_Pic_6, (132, 179), Mgn 100%, Tsp 0%/0%
           <>
          : Else ...
           <> Fork Condition: If Variable [28] == 7 then ...
            <> Show Picture: #35, GB_Mystic_Quest_Pic_7, (132, 179), Mgn 100%, Tsp 0%/0%
            <>
           : Else ...
            <> Fork Condition: If Variable [28] == 8 then ...
             <> Show Picture: #35, GB_Mystic_Quest_Pic_8, (132, 179), Mgn 100%, Tsp 0%/0%
             <>
            : Else ...
             <> Fork Condition: If Variable [28] == 9 then ...
              <> Show Picture: #35, GB_Mystic_Quest_Pic_9, (132, 179), Mgn 100%, Tsp 0%/0%
              <>
             : End of fork
             <>
            : End of fork
            <>
           : End of fork
           <>
          : End of fork
          <>
         : End of fork
         <>
        : End of fork
        <>
       : End of fork
       <>
      : End of fork
      <>
     : End of fork
     <>
    : End of fork
    <> Fork Condition: If Variable [29] == 0 then ...
     <> Fork Condition: If Hero #1's HP >= 100 then ...
      <> Show Picture: #36, GB_Mystic_Quest_Pic_0, (124, 179), Mgn 100%, Tsp 0%/0%
      <>
     : Else ...
      <> Erase Picture: #36
      <>
     : End of fork
     <>
    : Else ...
     <> Fork Condition: If Variable [29] == 1 then ...
      <> Show Picture: #36, GB_Mystic_Quest_Pic_1, (124, 179), Mgn 100%, Tsp 0%/0%
      <>
     : Else ...
      <> Fork Condition: If Variable [29] == 2 then ...
       <> Show Picture: #36, GB_Mystic_Quest_Pic_2, (124, 179), Mgn 100%, Tsp 0%/0%
       <>
      : Else ...
       <> Fork Condition: If Variable [29] == 3 then ...
        <> Show Picture: #36, GB_Mystic_Quest_Pic_3, (124, 179), Mgn 100%, Tsp 0%/0%
        <>
       : Else ...
        <> Fork Condition: If Variable [29] == 4 then ...
         <> Show Picture: #36, GB_Mystic_Quest_Pic_4, (124, 179), Mgn 100%, Tsp 0%/0%
         <>
        : Else ...
         <> Fork Condition: If Variable [29] == 5 then ...
          <> Show Picture: #36, GB_Mystic_Quest_Pic_5, (124, 179), Mgn 100%, Tsp 0%/0%
          <>
         : Else ...
          <> Fork Condition: If Variable [29] == 6 then ...
           <> Show Picture: #36, GB_Mystic_Quest_Pic_6, (124, 179), Mgn 100%, Tsp 0%/0%
           <>
          : Else ...
           <> Fork Condition: If Variable [29] == 7 then ...
            <> Show Picture: #36, GB_Mystic_Quest_Pic_7, (124, 179), Mgn 100%, Tsp 0%/0%
            <>
           : Else ...
            <> Fork Condition: If Variable [29] == 8 then ...
             <> Show Picture: #36, GB_Mystic_Quest_Pic_8, (124, 179), Mgn 100%, Tsp 0%/0%
             <>
            : Else ...
             <> Fork Condition: If Variable [29] == 9 then ...
              <> Show Picture: #36, GB_Mystic_Quest_Pic_9, (124, 179), Mgn 100%, Tsp 0%/0%
              <>
             : End of fork
             <>
            : End of fork
            <>
           : End of fork
           <>
          : End of fork
          <>
         : End of fork
         <>
        : End of fork
        <>
       : End of fork
       <>
      : End of fork
      <>
     : End of fork
     <>
    : End of fork
    <> Fork Condition: If Variable [30] == 0 then ...
     <> Erase Picture: #37
     <>
    : Else ...
     <> Fork Condition: If Variable [30] == 1 then ...
      <> Show Picture: #37, GB_Mystic_Quest_Pic_1, (116, 179), Mgn 100%, Tsp 0%/0%
      <>
     : Else ...
      <> Fork Condition: If Variable [30] == 2 then ...
       <> Show Picture: #37, GB_Mystic_Quest_Pic_2, (116, 179), Mgn 100%, Tsp 0%/0%
       <>
      : Else ...
       <> Fork Condition: If Variable [30] == 3 then ...
        <> Show Picture: #37, GB_Mystic_Quest_Pic_3, (116, 179), Mgn 100%, Tsp 0%/0%
        <>
       : Else ...
        <> Fork Condition: If Variable [30] == 4 then ...
         <> Show Picture: #37, GB_Mystic_Quest_Pic_4, (116, 179), Mgn 100%, Tsp 0%/0%
         <>
        : Else ...
         <> Fork Condition: If Variable [30] == 5 then ...
          <> Show Picture: #37, GB_Mystic_Quest_Pic_5, (116, 179), Mgn 100%, Tsp 0%/0%
          <>
         : Else ...
          <> Fork Condition: If Variable [30] == 6 then ...
           <> Show Picture: #37, GB_Mystic_Quest_Pic_6, (116, 179), Mgn 100%, Tsp 0%/0%
           <>
          : Else ...
           <> Fork Condition: If Variable [30] == 7 then ...
            <> Show Picture: #37, GB_Mystic_Quest_Pic_7, (116, 179), Mgn 100%, Tsp 0%/0%
            <>
           : Else ...
            <> Fork Condition: If Variable [30] == 8 then ...
             <> Show Picture: #37, GB_Mystic_Quest_Pic_8, (116, 179), Mgn 100%, Tsp 0%/0%
             <>
            : Else ...
             <> Fork Condition: If Variable [30] == 9 then ...
              <> Show Picture: #37, GB_Mystic_Quest_Pic_9, (116, 179), Mgn 100%, Tsp 0%/0%
              <>
             : End of fork
             <>
            : End of fork
            <>
           : End of fork
           <>
          : End of fork
          <>
         : End of fork
         <>
        : End of fork
        <>
       : End of fork
       <>
      : End of fork
      <>
     : End of fork
     <>
    : End of fork
    <> Comment: ----MP BERECHNUNG----
    <> Change Variable: [31] = MP of hero #1
    <> Change Variable: [32] = V[31]
    <> Change Variable: [33] = V[31]
    <> Change Variable: [32] Mod= 10
    <> Change Variable: [33] -= V[32]
    <> Change Variable: [33] /= 10
    <> Change Variable: [33] Mod= 10
    <> Comment: -----------------MP ANZEIGE----
    <> Fork Condition: If Variable [32] == 0 then ...
     <> Fork Condition: If Variable [31] >= 10 then ...
      <> Show Picture: #38, GB_Mystic_Quest_Pic_0, (180, 179), Mgn 100%, Tsp 0%/0%
      <>
     : Else ...
      <> Erase Picture: #38
      <>
     : End of fork
     <>
    : Else ...
     <> Fork Condition: If Variable [32] == 1 then ...
      <> Show Picture: #38, GB_Mystic_Quest_Pic_1, (180, 179), Mgn 100%, Tsp 0%/0%
      <>
     : Else ...
      <> Fork Condition: If Variable [32] == 2 then ...
       <> Show Picture: #38, GB_Mystic_Quest_Pic_2, (180, 179), Mgn 100%, Tsp 0%/0%
       <>
      : Else ...
       <> Fork Condition: If Variable [32] == 3 then ...
        <> Show Picture: #38, GB_Mystic_Quest_Pic_3, (180, 179), Mgn 100%, Tsp 0%/0%
        <>
       : Else ...
        <> Fork Condition: If Variable [32] == 4 then ...
         <> Show Picture: #38, GB_Mystic_Quest_Pic_4, (180, 179), Mgn 100%, Tsp 0%/0%
         <>
        : Else ...
         <> Fork Condition: If Variable [32] == 5 then ...
          <> Show Picture: #38, GB_Mystic_Quest_Pic_5, (180, 179), Mgn 100%, Tsp 0%/0%
          <>
         : Else ...
          <> Fork Condition: If Variable [32] == 6 then ...
           <> Show Picture: #38, GB_Mystic_Quest_Pic_6, (180, 179), Mgn 100%, Tsp 0%/0%
           <>
          : Else ...
           <> Fork Condition: If Variable [32] == 7 then ...
            <> Show Picture: #38, GB_Mystic_Quest_Pic_7, (180, 179), Mgn 100%, Tsp 0%/0%
            <>
           : Else ...
            <> Fork Condition: If Variable [32] == 8 then ...
             <> Show Picture: #38, GB_Mystic_Quest_Pic_8, (180, 179), Mgn 100%, Tsp 0%/0%
             <>
            : Else ...
             <> Fork Condition: If Variable [32] == 9 then ...
              <> Show Picture: #38, GB_Mystic_Quest_Pic_9, (180, 179), Mgn 100%, Tsp 0%/0%
              <>
             : End of fork
             <>
            : End of fork
            <>
           : End of fork
           <>
          : End of fork
          <>
         : End of fork
         <>
        : End of fork
        <>
       : End of fork
       <>
      : End of fork
      <>
     : End of fork
     <>
    : End of fork
    <> Fork Condition: If Variable [33] == 0 then ...
     <> Erase Picture: #39
     <>
    : Else ...
     <> Fork Condition: If Variable [33] == 1 then ...
      <> Show Picture: #39, GB_Mystic_Quest_Pic_1, (172, 179), Mgn 100%, Tsp 0%/0%
      <>
     : Else ...
      <> Fork Condition: If Variable [33] == 2 then ...
       <> Show Picture: #39, GB_Mystic_Quest_Pic_2, (172, 179), Mgn 100%, Tsp 0%/0%
       <>
      : Else ...
       <> Fork Condition: If Variable [33] == 3 then ...
        <> Show Picture: #39, GB_Mystic_Quest_Pic_3, (172, 179), Mgn 100%, Tsp 0%/0%
        <>
       : Else ...
        <> Fork Condition: If Variable [33] == 4 then ...
         <> Show Picture: #39, GB_Mystic_Quest_Pic_4, (172, 179), Mgn 100%, Tsp 0%/0%
         <>
        : Else ...
         <> Fork Condition: If Variable [33] == 5 then ...
          <> Show Picture: #39, GB_Mystic_Quest_Pic_5, (172, 179), Mgn 100%, Tsp 0%/0%
          <>
         : Else ...
          <> Fork Condition: If Variable [33] == 6 then ...
           <> Show Picture: #39, GB_Mystic_Quest_Pic_6, (172, 179), Mgn 100%, Tsp 0%/0%
           <>
          : Else ...
           <> Fork Condition: If Variable [33] == 7 then ...
            <> Show Picture: #39, GB_Mystic_Quest_Pic_7, (172, 179), Mgn 100%, Tsp 0%/0%
            <>
           : Else ...
            <> Fork Condition: If Variable [33] == 8 then ...
             <> Show Picture: #39, GB_Mystic_Quest_Pic_8, (172, 179), Mgn 100%, Tsp 0%/0%
             <>
            : Else ...
             <> Fork Condition: If Variable [33] == 9 then ...
              <> Show Picture: #39, GB_Mystic_Quest_Pic_9, (172, 179), Mgn 100%, Tsp 0%/0%
              <>
             : End of fork
             <>
            : End of fork
            <>
           : End of fork
           <>
          : End of fork
          <>
         : End of fork
         <>
        : End of fork
        <>
       : End of fork
       <>
      : End of fork
      <>
     : End of fork
     <>
    : End of fork
    <> Wait: 0,1 sec.

    Geändert von Marc (11.05.2009 um 23:14 Uhr)

  2. #2
    Ist an sich ganz simpel:

    Du darfst die Anzeigen nicht ständig aktualisieren.
    Wann musst du z.B. eine HP Anzeige aktualisieren? Wenn sich die HP des Helden verringert. Welche Möglichkeiten gibt es dazu? Wenn der Held getroffen wird oder sich heilt.

    Ergo setzt du die HP Anzeige in ein eigenes CE und callst dieses nur dann, wenn du weisst das die HP sich verändert hat. Im eben beschriebenen Fall wäre das nachdem der Schaden abgezogen wurde, ergo nach der Schadensberechnung oder nachdem eine Heilung ausgeführt wurde. Das bedeutet also auf jeden Fall auch das du jede Anzeige in ihr eigenes CE steckt. So kannst du dann gezielt die Anzeigen aktualisieren die auch gebraucht werden.

    Wenn du alle Anzeigen in solchen großen Codeblöcken ständig aktualisieren lässt muss es ja ruckeln. Du würdest ja im realen Leben auch nicht ständig denselben Quadratmeter deiner Wohnung staubsaugen. Du würdest auch warten bis sich dort Staub ansammelt.

    Geändert von makenshi (12.05.2009 um 00:33 Uhr)

  3. #3
    Zitat Zitat von makenshi Beitrag anzeigen
    Ist an sich ganz simpel:

    Du darfst die Anzeigen nicht ständig aktualisieren.
    Wann musst du z.B. eine HP Anzeige aktualisieren? Wenn sich die HP des Helden verringert. Welche Möglichkeiten gibt es dazu? Wenn der Held getroffen wird oder sich heilt.

    Ergo setzt du die HP Anzeige in ein eigenes CE und callst dieses nur dann, wenn du weisst das die HP sich verändert hat. Im eben beschriebenen Fall wäre das nachdem der Schaden abgezogen wurde, ergo nach der Schadensberechnung oder nachdem eine Heilung ausgeführt wurde. Das bedeutet also auf jeden Fall auch das du jede Anzeige in ihr eigenes CE steckt. So kannst du dann gezielt die Anzeigen aktualisieren die auch gebraucht werden.

    Wenn du alle Anzeigen in solchen großen Codeblöcken ständig aktualisieren lässt muss es ja ruckeln. Du würdest ja im realen Leben auch nicht ständig denselben Quadratmeter deiner Wohnung staubsaugen. Du würdest auch warten bis sich dort Staub ansammelt.
    nton:



    Manchmal kann das Leben so einfach sein. ^^
    Danke.

  4. #4
    Kleiner Tipp am Rande: Wenn du beim EasyEventExporter die Formatvorlage "vb_light.eft" nimmst, werden Verzweigungen und Sprünge im Forum Farbig markiert.

  5. #5
    Zitat Zitat von Cherry Beitrag anzeigen
    Kleiner Tipp am Rande: Wenn du beim EasyEventExporter die Formatvorlage "vb_light.eft" nimmst, werden Verzweigungen und Sprünge im Forum Farbig markiert.
    Ah, besten Dank.

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •