Print mover (np. z X = 250 do X = 0) 2323 2

O temacie

Autor Bogdan Zwei

Zaczęty 25.10.2012 roku

Wyświetleń 2323

Odpowiedzi 2

Bogdan Zwei

Bogdan Zwei

Użytkownicy
Wulgarny skurwiel pierdolony.
posty1864
Propsy541
Profesjabrak
  • Użytkownicy
  • Wulgarny skurwiel pierdolony.
Witam, otóż w niedzielę zrobiłem skrypt przemieszczającego się print'u, ale on się nie przemiesza. Próbowałem parę sztuczek itp., ale i tak nic nie pomagało. Moglibyście rzucić okiem i powiedzieć, co źle napisałem lub czego mi brakuje?
Oto skrypt:

Spoiler
func void PrintScrlText(var string text)
{
var int PrintVar2; PrintVar2  = Print_Ext (PrintVar_X, PrintVar_Y, text, FONT_Screen, RGBA(135,   255, 135,   255), 2000); // PrintVar_X/Y są globalne
var int Anim8; Anim8 = Anim8_NewExt (1, ScrollText, PrintVar2, false);
Anim8 (Anim8, 8192, 2000, A8_Constant);
Anim8_RemoveIfEmpty (Anim8, true);
Anim8_RemoveDataIfEmpty (Anim8, true);
};

func void ScrollText(var int PrintVar2, var int Pos)
{
var zCViewText PrintVar2Object; PrintVar2Object = Print_GetText(PrintVar2);
PrintVar2Object.posx = Pos;
};

Funkcję wywołuję oczywiście poprzez:
PrintScrlText("text")
 
:ok: zachęca do dalszej pomocy. Nie zapominaj o tym!

Prywatne wiadomości typu "Ej, pomocy" kasuję od razu. Od tego jest forum, a nie PW.

To me, defeat in anything is merely temporary, and its punishment is but an urge for me to greater effort to achieve my goal. Defeat simply tells me that something is wrong in my doing; it is a path leading to success and truth.

In order to realize our true self we must be willing to live without being dependent upon the opinion of others.

Lehona

Lehona

Użytkownicy
posty196
Propsy190
  • Użytkownicy
Change duration (that is the last parameter of Print_Ext()) to -1, then it should work. However, the print won't disappear. I've come back from holidays for now and will get back to testing what's wrong whenever I get access to Gothic (in 8 days the latest).
 
Unless specified otherwise, my posts are always about Gothic 2 Night of the Raven.

Bogdan Zwei

Bogdan Zwei

Użytkownicy
Wulgarny skurwiel pierdolony.
posty1864
Propsy541
Profesjabrak
  • Użytkownicy
  • Wulgarny skurwiel pierdolony.
Ok, I did it as you said before (on PV). It's working, but - as you said - the pring does not disappear.
 
:ok: zachęca do dalszej pomocy. Nie zapominaj o tym!

Prywatne wiadomości typu "Ej, pomocy" kasuję od razu. Od tego jest forum, a nie PW.

To me, defeat in anything is merely temporary, and its punishment is but an urge for me to greater effort to achieve my goal. Defeat simply tells me that something is wrong in my doing; it is a path leading to success and truth.

In order to realize our true self we must be willing to live without being dependent upon the opinion of others.


0 użytkowników i 1 Gość przegląda ten wątek.
0 użytkowników
Do góry