Anmelden

Archiv verlassen und diese Seite im Standarddesign anzeigen : Eigene Textbox > Problem



Engel der Furcht
29.04.2011, 10:01
Hallöle.
Ich hab derzeit ein komisches Problem mit meiner Picture-basierten Textbox.

Das ist das Event:


- SCRIPT -
<> Message Style: Transparent, Bottom, Auto Pos., Halt processes
<> Change Variable: [4] = Y position on screen (pixels) of hero
<> Change Variable: [3] += 1
<> Fork Condition: If Variable [4] > 144 then ...
. <> Comment: Textbox OBEN
. <> Fork Condition: If Variable [3] == 1 then ...
. . <> Comment: Aufbau
. . <> Show Picture: #50, System\Textbox_Ganz, (160, 40), Mgn 150%, Tsp 100%/100%
. . <> Show Picture: #49, System\Textbox_Musterganz, (160, 37), Mgn 0%, Tsp 55%/55%
. . <> Move Picture: #50, (160, 40), Mgn 100%, Tsp 0%/0%, 0.1 sec.
. . <> Move Picture: #49, (160, 37), Mgn 100%, Tsp 0%/0%, 0.1 sec., Wait
. . <> Jump To Label: 1
. . <>
. : End of fork
. <> Fork Condition: If Variable [3] == 2 then ...
. . <> Comment: Abbau
. . <> Show Picture: #50, System\Textbox_Ganz, (160, 40), Mgn 100%, Tsp 0%/0%
. . <> Show Picture: #49, System\Textbox_Musterganz, (160, 37), Mgn 100%, Tsp 0%/0%
. . <> Move Picture: #50, (160, 40), Mgn 115%, Tsp 100%/100%, 0.1 sec.
. . <> Move Picture: #49, (160, 37), Mgn 0%, Tsp 55%/55%, 0.1 sec., Wait
. . <> Erase Picture: #50
. . <> Erase Picture: #49
. . <> Erase Picture: #48
. . <> Change Variable: [3] = 0
. . <>
. : End of fork
. <>
: Else ...
. <> Comment: Textbox UNTEN
. <> Fork Condition: If Variable [3] == 1 then ...
. . <> Comment: Aufbau
. . <> Show Picture: #50, System\Textbox_Ganz, (160, 200), Mgn 150%, Tsp 100%/100%
. . <> Show Picture: #49, System\Textbox_Musterganz, (160, 199), Mgn 0%, Tsp 55%/55%
. . <> Move Picture: #50, (160, 200), Mgn 100%, Tsp 0%/0%, 0.1 sec.
. . <> Move Picture: #49, (160, 199), Mgn 100%, Tsp 0%/0%, 0.1 sec., Wait
. . <> Jump To Label: 1
. . <>
. : End of fork
. <> Fork Condition: If Variable [3] == 2 then ...
. . <> Comment: Abbau
. . <> Show Picture: #50, System\Textbox_Ganz, (160, 200), Mgn 100%, Tsp 0%/0%
. . <> Show Picture: #49, System\Textbox_Musterganz, (160, 199), Mgn 100%, Tsp 0%/0%
. . <> Move Picture: #50, (160, 200), Mgn 115%, Tsp 100%/100%, 0.1 sec.
. . <> Move Picture: #49, (160, 199), Mgn 0%, Tsp 55%/55%, 0.1 sec., Wait
. . <> Erase Picture: #50
. . <> Erase Picture: #49
. . <> Erase Picture: #48
. . <> Change Variable: [3] = 0
. . <>
. : End of fork
. <>
: End of fork
<> Label: 1


Die Idee dahinter:
Wird das Event aufgerufen,wird eine Variable +1 gerechnet.
Wenn die Variable dann 1 ist,wird die Textbox AN gemacht.
Ist sie danach aber 2,wird sie zu gemacht.
Komischerweise geht die Textbox nur AN und auch AUS,aber danach kommt sie nie wieder.

€dit: Ah,habs schon gelöst,war ein Denkfehler von mir,
das hier ist das Event für die Textbox ohne Face,das Problem war aber die Textbox mit Face,war die Variable nicht auf 0 gesetzt.