Differences

This shows you the differences between the selected revision and the current
version of the page.


wmebook:ch9 2007/12/10 14:45 wmebook:ch9 2008/01/10 14:00 current
Line 85: Line 85:
</code> </code>
-Then we get it's **sprite object**. Sprite objects are the means how we can manipulate with entities on the lower level. This code provides that the code will wait until the animation still runs. In this case it's not that useful, but many times you need to synchronize your game with animation and this is the way how we can do it:+Then we get it's **sprite object**. Sprite objects are the means how we can manipulate with sprite entities on the lower level. The code lines provides that the script will wait until the animation is over. In this case it's not that useful, but many times you need to synchronize your game with animation and this is the way how we can do it:
<code script> <code script>
Line 94: Line 94:
OOPS. We can't see it because the inventory is in the way. Let's return to the very original sliding inventory concept! OOPS. We can't see it because the inventory is in the way. Let's return to the very original sliding inventory concept!
-Open the game_loop.script and modify the end so it'll read this:+Open the game_loop.script and modify the end so it'll read:
<code script> <code script>
Line 190: Line 190:
{ {
  Game.Interactive = false;   Game.Interactive = false;
- this.Talk("Finally you arrived! I was waiting here for you for so long!"); +  this.Talk("Finally you arrived! I was waiting here for you for so long!"); 
- actor.Talk("Who are you?"); + actor.Talk("Who are you?"); 
- this.Talk("I'm the servant of the WME circle and I have to serve here until someone changes a place with me."); + this.Talk("I'm the servant of the WME circle and I have to serve here until someone changes a place with me."); 
- actor.Talk("But how could that be? Who was the one in the alternate universe?"); + actor.Talk("But how could that be? Who was the one in the alternate universe?"); 
- this.Talk("I have only very little power but one of my skills is to influence other's dreams. I tried this on many people but you're the one who caught up."); + this.Talk("I have only very little power but one of my skills is to influence other's dreams. I tried this on many people but you're the one who caught up."); 
- actor.Talk("I don't believe you. You are supposed to tell me the secrets of everything."); + actor.Talk("I don't believe you. You are supposed to tell me the secrets of everything."); 
- this.Talk("The secret is not to get your legs wooden. HAHAHA!"); + this.Talk("The secret is not to get your legs wooden. HAHAHA!"); 
-  + 
- Scene.FadeOut(400,255,255,255,255); + Scene.FadeOut(400,255,255,255,255); 
- actor.Active = false; + actor.Active = false; 
- Sleep(1000); + Sleep(1000); 
- Scene.FadeIn(400);+ Scene.FadeIn(400);
- this.Talk("NOOOOOOOOOOOOOOOOOOOOOOOOO!");+  this.Talk("NOOOOOOOOOOOOOOOOOOOOOOOOO!")
 + 
 +  var e = Scene.GetNode("Ending"); 
 +  e.AlphaColor = MakeRGBA(255,255,255,0); 
 +  e.Active = true;
- var e = Scene.GetNode("Ending"); +  for (var n=0;n<255;n=n+1) 
- e.AlphaColor = MakeRGBA(255,255,255,0); +
- e.Active = true; + e.AlphaColor = MakeRGBA(255,255,255,n);  
-  + Sleep(1); 
- for (var n=0;n<255;n=n+1) + }
-+
- e.AlphaColor = MakeRGBA(255,255,255,n);  +
- Sleep(1); +
- }+
- this.SubtitlesPosRelative = false;  +  this.SubtitlesPosRelative = false;  
- this.SubtitlesPosY = 257; + this.SubtitlesPosY = 257; 
- this.SubtitlesPosX = 330;+ this.SubtitlesPosX = 330;
- this.Talk("It can't be like this!"); +  this.Talk("It can't be like this!"); 
- this.Talk("Please save me someone, anyone???? Hello???"); + this.Talk("Please save me someone, anyone???? Hello???"); 
- this.Talk("Wait what did he said? Influencing other people dreams?");+ this.Talk("Wait what did he said? Influencing other people dreams?");
- Game.FadeOut(5000,0,0,0,255); +  Game.FadeOut(5000,0,0,0,255); 
- Game.QuitGame();+ Game.QuitGame();
- Game.Interactive = true;+  Game.Interactive = true;
} }
</code> </code>
 
wmebook/ch9.1197294339.txt.gz · Last modified: 2007/12/10 14:45 by metamorphium
Recent changes RSS feed Creative Commons License Driven by DokuWiki