[B3D] Alpha Fade-Out
Übersicht
BlitzBasic
Beginners-Corner|
|
N0XBetreff: [B3D] Alpha Fade-Out |
Antworten mit Zitat |
|---|---|---|
|
Hey!
Ich möchte in meinem Spiel das Gegner nachdem sie tot sind langsam ausblenden und sich dann löschen. Ich hab das so probiert, aber geht nicht, da die Repeat-Schleife nicht Programmtauglich ist. Wie kann ich das ohne Repeat-Schleife lösen? Code: [AUSKLAPPEN] Local i#=1.0
c\fadeTime = MilliSecs()+100 Repeat If c\fadeTime<MilliSecs() Then c\fadeTime = MilliSecs()+100 i = i-0.1 EntityAlpha(c\mesh,i) DebugLog(i) If i<=0.0 Then i=0.0 EndIf Until i=0.0 Mfg, N0X |
||
| Projekte: |Tibario| http://www.blitzforum.de/worklogs/325/ | 5% | ||
|
|
Ana |
Antworten mit Zitat |
|---|---|---|
|
Da sie ja types sind kannst du ja zusätzlich ein field Alpha:Float einführen und jedes mal
BlitzBasic: [AUSKLAPPEN] If c\life <= 0 Then |
||
|
Don't only practice your art,
but force your way into its secrets, for it and knowledge can raise human to divine |
||
|
|
N0X |
Antworten mit Zitat |
|---|---|---|
|
Danke, habs jetzt so ähnlich gelöst Mfg, N0X |
||
| Projekte: |Tibario| http://www.blitzforum.de/worklogs/325/ | 5% | ||
Übersicht
BlitzBasic
Beginners-Corner
Powered by phpBB © 2001 - 2006, phpBB Group
