Hallo an alle!
Ich wollte gerne in meinem Adventure eine Szene reinbringen, wo der ganze Bildschirm ruckelt, wie ein Erdbeben. Ich habe schon an MMM Epis gesehen, dass es irgendwie möglich ist.
Frage: Wie Scripte ich sowat?
Erdbeben
-
- Hobby-Archäologe
- Beiträge: 163
- Registriert: 28.04.2005, 16:26
- Wohnort: Mönchengladbach
Code: Alles auswählen
ShakeScreen
ShakeScreen (int amount)
Shakes the screen to simulate, for example, an earthquake. AMOUNT is how much the screen shakes: 1 is hardly anything, and 25 is a lot.
Example:
ShakeScreen(5);
will shake the screen a little.
Code: Alles auswählen
ShakeScreenBackground
ShakeScreenBackground (int delay, int amount, int length)
Shakes the screen to simulate, for example, an earthquake. The game is not paused while the screen shakes - it will continue in the background.
DELAY specifies the 'shakiness' of the shake - 2 is the lowest you can pass for this, and will create the most shaky screen.
AMOUNT specifies the ferociousness of the shake - ie. how much the screen moves by when it does shake. Here, 1 is a very tiny shake, up to about 30 for a ferocious shake.
LENGTH specifies how long the shake lasts for, in game loops. For example, 80 would be equivalent to 2 seconds at the default game speed.
You can abort any current background shake that is in progress by calling this command with the LENGTH parameter as zero.
Example:
ShakeScreenBackground (4, 10, 80);
will shake the screen a little for 2 seconds.
- KhrisMUC
- Adventure-Gott
- Beiträge: 4674
- Registriert: 14.03.2005, 00:55
- Wohnort: München
http://www.bigbluecup.com/manual/ShakeScreen.htm
http://www.bigbluecup.com/manual/ShakeS ... ground.htm
http://www.bigbluecup.com/manual/ShakeS ... ground.htm
Use gopher repellent on funny little man
- Furymars
- Süßwasserpirat
- Beiträge: 485
- Registriert: 13.06.2006, 20:45
- Wohnort: Adventure Treff
Ich wend mich lieber an euch .KhrisMUC hat geschrieben:http://www.bigbluecup.com/manual/ShakeScreen.htm
http://www.bigbluecup.com/manual/ShakeS ... ground.htm
Da versteh ich mehr!
Danke!
Angekündigte Spiele:
MMM : "Nicht ohne meinen Hamster!"
MMM : "Nicht ohne meinen Hamster!"