Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. 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 - lacosaweb

Pages: 1 ... 6 7 [8]
106
Technical forum / Unload variables from memory
« on: July 09, 2007, 11:46:03 AM »
I know that if I want that two scripts are using the same variable, this variable must be global. But in case that these scripts are used only one time in the game, what can I unload from memory the variable?

I need know that because along the game a lot of variables are declared but only are used in one scene or one time. These variables are taking memory from computer (specially if some of they are arrays) and if the game is long this may be a serious problem. Also when player save the game into savegame file, is possible that it spends a lot of time to save a lot of little variables that a lot of them aren't necessary because never will be used yet.

107
Hi, I have an entity region in the scene with a script. I want that if is the first time that player enters at scene and look at this entity something happens, but if it isn't the first time that player enters in scene the action when look the entity will be different.

How can I see the value of StateRoom of that scene from the entity script?

108
Technical forum / Credits and Titles
« on: June 20, 2007, 10:57:40 AM »
Hi, is any command, plugin or code to show credits like the cast of a film, running lines from back to top or the classical effect of a typewritter?

109
Technical forum / Re: Open window menu
« on: June 18, 2007, 09:33:53 PM »
Oh, true I do it now and this works. Sorry I don't know what happened but thanks a lot for your help and your time.

Thanks.

110
Technical forum / Re: Open window menu
« on: June 18, 2007, 07:50:42 PM »
Here you can download my project. The button is on the up-right.

www.lacosaweb.com/WME/Scup1.rar

I hope you can help me. Thanks.

111
Technical forum / Re: Open window menu
« on: June 18, 2007, 08:41:37 AM »
If I insert PARENT_NOTIFY = TRUE in my window and buttons definition:

Quote
WINDOW
{
  IMAGE = "interface\SCUP\sprites\barraadalt.png"
  SCRIPT = "interface\SCUP\menu.script"
  MENU = FALSE
  X = 0
  Y = 0
 
  BUTTON
   {
   IMAGE = "interface\SCUP\sprites\BOTON1-1.png"
   IMAGE_HOVER = "interface\SCUP\sprites\BOTON1-1.png"
   IMAGE_PRESS = "interface\SCUP\sprites\BOTON1-2.png"
   PARENT_NOTIFY = TRUE
   WIDTH = 121
   HEIGHT = 30
   X = 757
   Y = 1
   NAME = "btnOpciones"
   TEXT=OPCIONES
   }

The wme says that there's an error in menu.window. Now I'm not using a .BUTTON script, as you can see in the code I define my button inside my window definition. If this is the problem, how can I resolve it, can anyone show me an example to open a window when a button is pressed?

112
Technical forum / Re: Open window menu
« on: June 17, 2007, 11:43:12 AM »
If I put ARENT_NOTIFIY = TRUE an error appears. My button definition is inside the menu.window file:

Quote
WINDOW
{
  IMAGE = "interface\SCUP\sprites\barraadalt.png"
  SCRIPT = "interface\SCUP\menu.script"
  MENU = FALSE
  X = 0
  Y = 0
 
  BUTTON
   {
   IMAGE = "interface\SCUP\sprites\BOTON1-1.png"
   IMAGE_HOVER = "interface\SCUP\sprites\BOTON1-1.png"
   IMAGE_PRESS = "interface\SCUP\sprites\BOTON1-2.png"
   WIDTH = 121
   HEIGHT = 30
   X = 757
        Y = 1
   NAME = "btnOpciones"
   TEXT=OPCIONES
   }
}

113
Technical forum / Re: Open window menu
« on: June 17, 2007, 09:45:45 AM »
I put the Game.Msg("Pressed!");  sentence but nothing happens. This is my actual code:

Menu.window:
Quote
WINDOW
{
  IMAGE = "interface\SCUP\sprites\barraadalt.png"
  SCRIPT = "interface\SCUP\menu.script"
  MENU = FALSE
  X = 0
  Y = 0
 
  BUTTON
   {
   IMAGE = "interface\SCUP\sprites\BOTON1-1.png"
   IMAGE_HOVER = "interface\SCUP\sprites\BOTON1-1.png"
   IMAGE_PRESS = "interface\SCUP\sprites\BOTON1-2.png"
   WIDTH = 121
   HEIGHT = 30
   X = 757
        Y = 1
   NAME = "btnOpciones"
   TEXT=OPCIONES
   }
}

menu.script:
Quote
on "btnOpciones"
{
    Game.Msg("Pressed!");
    var WinMainMenu = Game.LoadWindow("interface\SCUP\opciones.window");
    WinMainMenu.Center();
    WinMainMenu.Visible=true;
    WinMainMenu.GoSystemExclusive();
    Game.UnloadObject(WinMainMenu);

}

Nothing in wme.log

114
Technical forum / Re: Open window menu
« on: June 16, 2007, 08:52:02 PM »
Nothing in wme.log. In the menu.window I have this code:

Quote
WINDOW
{
  IMAGE = "interface\SCUP\sprites\barraadalt.png"
  SCRIPT = "interface\SCUP\menu.script"
  MENU = FALSE
  X = 0
  Y = 0
 
  BUTTON
   {
   IMAGE = "interface\SCUP\sprites\BOTON1-1.png"
   IMAGE_HOVER = "interface\SCUP\sprites\BOTON1-1.png"
   IMAGE_PRESS = "interface\SCUP\sprites\BOTON1-2.png"
   WIDTH = 121
   HEIGHT = 30
   X = 757
        Y = 1
   NAME = "btnOpciones"
   TEXT=OPCIONES
   }

And the image when I press the button is Ok, I don't know the problem

115
Technical forum / Open window menu
« on: June 16, 2007, 04:36:58 PM »
Hi, I have a abutton in the screen interface. Well, I want when the button is pressed a window appear. When I press the button nothing happens. Help me please.

I type this code in the menu.script:

Quote
on "btnOpciones"
{
    var WinMainMenu = Game.LoadWindow("interface\SCUP\opciones.window");
    WinMainMenu.Center();
    WinMainMenu.GoSystemExclusive();
    Game.UnloadObject(WinMainMenu);

}

This is the definition of button on opciones.button:
Quote
BUTTON
{
  IMAGE = "interface\SCUP\sprites\BOTON1-1.png"
  IMAGE_HOVER = "interface\SCUP\sprites\BOTON1-1.png"
  IMAGE_PRESS = "interface\SCUP\sprites\BOTON1-2.png"
  PARENT_NOTIFY = TRUE
  WIDTH = 121
  HEIGHT = 30
  NAME = "btnOpciones"
}

What is the problem? No errors appear.

116
Technical forum / Lines like Indiana Jones maps
« on: June 14, 2007, 11:53:58 AM »
Hi, I need to draw lines on a map that are growing, like the travels in Indiana Jones, you understand me?

Well, I don't know how can I do it. Please can you help me?

Pages: 1 ... 6 7 [8]

Page created in 0.052 seconds with 23 queries.