Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - HIman

Pages: [1] 2
1
Привет, в

3
Technical forum / Re: Stars of the background
« on: November 22, 2005, 11:55:31 AM »

Did I miss something or shouldn't it be Math.sin() and Math.cos()?  :-X
[/quote]

Certainly  :)

4
Technical forum / Re: Stars of the background
« on: November 21, 2005, 10:40:40 PM »
Well, it I also wanted to see thanks...
All works wonderfully.

5
Technical forum / Stars of the background
« on: November 21, 2005, 11:58:45 AM »
 All greetings!
I try to make running up stars, from the center to edges of the screen.
Also there were some questions:
1. How to place sprite stars in a starting position after she has reached edge of the screen?
2. Why twitching moving of stars, though FPS = 100 is appreciable?

The script of a star is resulted below:
Code: [Select]
#include "scripts\base.inc"

//this script moves the stars of the background of the menu

//start on center
self.X = 1024/2;
self.Y = 768/2;

//ramdom movement direction
var a = Random(0,359);
var incX = sin(a);
var incY = cos(a);

while(true)
{
//move the sprite
self.Y = self.Y + incY*4;
self.X = self.X + incX*4;

Sleep(20);
}

Can eat easier with the decision?

6
Technical forum / Bad quality of video Theora
« on: September 01, 2005, 08:49:27 AM »
Greetings!
    I have tried to recode from AVI in Teora, and with help VLC media player,
 and with the help ffmpeg2theora-0.15.exe, but the half-scientific result absolutely has not pleased me,
very strong distortions. Such into game to insert it is impossible!
How to be?

7
Technical forum / Re: How to transfer the image to component STATIC?
« on: August 28, 2005, 04:41:10 PM »
 It work! Thanks !!!!
You the wizard, that I only did not do{make} also a code checked
Also has written a pair of other scripts too the most realizing.
The doubt has already crept in that only TEXT it is possible to transfer,
and other parameters are not present.
I cannot explain why 4 hours back this code did not work, and now works.  :(

8
Technical forum / Re: How to transfer the image to component STATIC?
« on: August 28, 2005, 09:31:02 AM »
Oh, forgive really I is not attentive.

But nevertheless has not earned.

Call to undefined method 'SetImage'. Ignored.

9
Technical forum / How to transfer the image to component STATIC?
« on: August 28, 2005, 08:06:02 AM »
Example
scenes\start_logo\scr\credits.script
Code: [Select]
#include "scripts\base.inc"

var Caption = this.GetControl("credit");
var Caption_image = this.GetControl("credit_imge");

Game.PlayMusic("sounds\town_zombie_call1.ogg");
DoCredit("HIman present","sprites\logo.sprite");

Sleep(3600);
Game.StopMusic();
Sleep(1000);
HideCredit();
Sleep(500);

Game.PlayMusic("sounds\windchine1.ogg");
DoCredit("AKAVAKA present","sprites\2d_zast.sprite");
   
Sleep(3600);
Game.StopMusic();
Sleep(1000);
HideCredit();
Sleep(500);

this.Visible = false;

DoClose();


////////////////////////////////////////////////////////////////////////////////
function DoClose()
{
Game.StopMusic();
        this.Close();
Game.ChangeScene("scenes\Menu\Menu.scene");
Game.UnloadObject(this);
}

////////////////////////////////////////////////////////////////////////////////
function DoCredit(Text, Image)
{
var i;

this.AlphaColor = RGB(255, 255, 255, 0);

Caption.Text = Text;

//   Not work
//        Caption_image.Image = Image;
//   Not work to
          Caption_image.SetImage(Image);


// show new credit
for(i = 0; i<=255; i=i+10)
{
this.AlphaColor = RGB(255, 255, 255, i);
Sleep(80);
}
this.AlphaColor = RGB(255, 255, 255, 255);
}

////////////////////////////////////////////////////////////////////////////////
function HideCredit()
{
var i;
// hide old credit
for(i = 255; i>=0; i=i-10)
{
this.AlphaColor = RGB(255, 255, 255, i);
Sleep(20);
}

}

scenes\start_logo\scr\credits.window

Code: [Select]
WINDOW
{
  TRANSPARENT = TRUE
  SCRIPT = "scenes\start_logo\scr\credits.script"
  STATIC
  {
    NAME = "credit_image"
    X = 270
    Y = 100
  }
  STATIC
  {
    TEXT = ""
    TEXT_ALIGN = "center"
    NAME = "credit"
    FONT = "fonts\big_grey.font"
    X = 0
    Y = 568
    WIDTH = 800
    HEIGHT = 32
  }
}

The text works perfectly, but the image is not :(

If in scenes\start_logo\scr\credits.window to insert

Code: [Select]
WINDOW
{
  TRANSPARENT = TRUE
  SCRIPT = "scenes\start_logo\scr\credits.script"
  STATIC
  {
    NAME = "credit_image"
    X = 270
    Y = 100
    IMAGE = "sprites\logo.sprite"
  }
  STATIC
  {
    TEXT = ""
    TEXT_ALIGN = "center"
    NAME = "credit"
    FONT = "fonts\big_grey.font"
    X = 0
    Y = 568
    WIDTH = 800
    HEIGHT = 32
  }
}

That the picture is shown as it is necessary, but whereas it can be changed?

10
Technical forum / Re: wme crashes somehow
« on: August 25, 2005, 07:19:02 PM »
By the way, at me absolutely same symptoms,
I too use TTF a font.

11
Technical forum / Re: singl line editor control
« on: August 25, 2005, 12:07:53 PM »
In an example wme_demo I have found code intervace\system\avegame.script
Code: [Select]
self.xResult = false;
if(self.xDescription!=null)
{
  var Editor = self.GetWidget("desc");
  Editor.Text = self.xDescription;
  Editor.SelStart = 0;
  Editor.SelEnd = 1000;
}
self.xDescription = "";
Other way to take the text is not present? Only so?
If yes, I could not find in the documentation
xResult
xDescription

And how to null a line if there the text has already been entered?

12
General Discussion / Re: I am from Russia
« on: August 24, 2005, 06:48:04 PM »
Н

13
Technical forum / singl line editor control
« on: August 24, 2005, 06:38:03 PM »
Hello,
And it is possible to show a small example how to work with a line,
 read, write, erase
for singl line editor control?

14
I have understood all... Thanks metamorphium and him
 tutorial http: // wiki.dead-code.org/wakka.php? wakka=ObjectsVariables*v=k95
>>>>>>>>>
!!This is important! If you use global variables they MUST be declared using the global keyword in every script you are using them. Otherwise it won't work and you will end up with script compiler errors.

15
I have just looked at the wme-demo, and MenuObject is also defined in Game.Script which includes base.inc  - did you delete it there?
Is not present did not delete, after change in scripts\game.script
global MenuObject = null;
On
MenuObject=null;

Works, but then the question remains as it turns out that has been determined two times a global variable in WME_demo?

Pages: [1] 2

Page created in 0.025 seconds with 23 queries.