Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

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 - Net

Pages: 1 [2] 3 4
16
Obecné fórum / Re: postavy
« on: May 20, 2008, 03:54:41 PM »
Sice nevím, kde by se daly postavy na způsob Tondy Čuriny stáhnout, ale můžu ti říct, že se nejedná o ručně kreslenou postavu, ale model udělaná v 3D programu a vyrenderovaný.

17
Technical forum / Re: Problem with scope when compile the game
« on: May 20, 2008, 09:37:26 AM »
Do you have included base.inc in your problem_script.script ?

18
Technical forum / Re: i don't understand footstep for 2d actor
« on: May 11, 2008, 10:05:14 AM »
Is WME showing some error?

Try to Check syntax of your actor.script.

If you have exactly footstep method you've post, there is a mistake.
The method is not ended correctly. At the end is missing }.

19
Technical forum / Re: i don't understand footstep for 2d actor
« on: May 10, 2008, 03:11:50 PM »
Yes, you have to copy this

Code: [Select]
on "footstep"
{
 // get a region the actor is standing in
 var Reg = Scene.GetRegionAt(this.X, this.Y);
 if (Reg!=null)
 {
   // play a sound depenging on a surface
   // "xSurface" is a custom property we defined in SceneEdit
   switch(Reg.xSurface)
   {
     case "grass":
       this.PlaySound("footsteps\grass.ogg");
     break;
 
     case "wood":
       this.PlaySound("footsteps\wood.ogg");
     break;
 
     // add more sounds here...
   }
 }

to your actor.script.

Then you must define "footstep" event in SpriteEditor to your actor walk sprite



and also you must have defined some areas in you scene with "xSurface" property


20
Technical forum / Re: idle override
« on: May 05, 2008, 03:31:00 PM »
http://wiki.dead-code.org/wakka.php?wakka=IdleActorScript&v=11ou

if you make some modifications you can play random idle animations without seting them hardway.

21
Technical forum / Re: The right sequence will open the door...
« on: April 30, 2008, 06:42:49 PM »
I think both code snippets are identic, for WME processes Logical Operations from left to right. If a.length<4 fails, the statement fails, otherwise the second part is checked.

Ok, but The Man wanted to write You did it! or You failed! JUST when the a variable has length equal to 4. Thats what I wrote, the game will write You failed! until the a has length 4 and the right content.

22
Technical forum / Re: The right sequence will open the door...
« on: April 30, 2008, 10:53:26 AM »
You don't have to double use while(true).

This should work as you expect

Code: [Select]
while(true)
{
  if (a.Length == 4)
  {
    if (a == "1212")
    {
      Game.Msg("You did it!");
    }
    else
    {
      Game.Msg("You failed!");
    }
  }
  Sleep(200);
}

I rewrote your code, because if you use

Code: [Select]
while(true)
{
  if(a.Length==4 && a=="1212")
  {
    Game.Msg("You did it!");
  }
  else
  {
    Game.Msg("You failed!");
  }
  Sleep(200);
}

the game will write You failed! every time the loop is executed. The first (I think working code) will check, if variable a has length 4 and then check its value and write You did it! or You failed!. If variable a doesn't have expected length, the inner code will not be executed.

I hope this will help and I'm sorry for my English.

23
Technical forum / Re: The right sequence will open the door...
« on: April 30, 2008, 09:35:45 AM »
scene_init script is executed ONLY when you enter the scene and then it ends.

Try in scene_init script write this:

Code: [Select]
while(true)
{
  if(a=="1212")
  {
    Game.Msg("You did it!");
  }
  Sleep(200);
}

24
Technical forum / Re: The right sequence will open the door...
« on: April 29, 2008, 09:43:39 PM »
Nevermind.
Is there any error?

25
Technical forum / Re: The right sequence will open the door...
« on: April 29, 2008, 08:44:02 PM »
Code: [Select]
a = new String()256; <-- here

the right way is

Code: [Select]
a = new String(256);

26
Technical forum / Re: The right sequence will open the door...
« on: April 29, 2008, 07:11:39 PM »
Code: [Select]
if(a.length=4 && a=1342) <-- there is a mistake
{
/do something/
}

if you use = you will set the variable
to check you must use ==

so your code must look like

Code: [Select]
if(a.length==4 && a==1342)
{
/do something/
}

and ofcourse you must add the numbers to your string variable this way

Code: [Select]
a = a + "NUMBER";

else you will sum the numbers and then your code

Code: [Select]
/do something/
will never be done

27
Technical forum / Re: The right sequence will open the door...
« on: April 28, 2008, 07:19:02 PM »
Code: [Select]
var test;
test = "Some text";

Game.Msg(test.Length); //this produce number 9 (strings SOME TEXT length)

28
Fixed / Re: Bug in WindowEdit v1.8.5
« on: April 01, 2008, 06:54:22 PM »
I think it's because in WME code there is called sequence like this (eg. in Object Pascal):

procedure OpenButton.OnClick(Sender: TObject);
begin
  OpenDialog.Execute;
  Window.Name:= OpenDialog.FileName;
end;

so when you close the OpenDialog window (by pressing CLOSE button), the variable Window.Name can't be set, because OpenDialog.FileName is not set and throws the error.

It can be avoided by using something like this:

if OpenDialog.Execute then
begin
  Window.Name:= OpenDialog.FileName;
end;

this code controls, if in OpenDialog was opened some file, else the code inside is not launched.


I think that Mnemonic just overlook this  ;)

29
Jasně, ovladače zkusím přeinstalovat. Jinak textura se nesnaží dostat celá na obrazovku, ale snaží se o toto:

čím více se scéna posouvá vpravo, tak se smršťuje a naopak.

30
Ne, to jede naprosto správně.

Toto je PC na kterém se problém vyskytuje:

Intel Celeron M 1.86 GHz
1 GB RAM
ATI RADEON XPRESS 200M 128MB
DirectX 9c
displej 1280x800 (15.4" - notebook)
Windows XP Home

Zkoušel jsem hru spustit i na jiných PC (Win XP Pro, Win Vista) a tam to jede v pořádku.

Pages: 1 [2] 3 4

Page created in 0.035 seconds with 18 queries.