Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

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.

Topics - Drax

Pages: 1 [2]
16
Technical forum / including global after if
« on: January 08, 2004, 09:43:00 AM »
we want to make the language chooseable in our game.

now I began to test it with teh text="mainmenu" in the mainwindow.

i can change it in the mwinwindow.script by self.text="blabla";

and I hope so
var text1="blabla";
self.text=text1;

In the base.inc I declared a global language="de";
for german.

now I scripted in the game.script (base.inc is included):

if(language="de"){
#include "language\de\captions.inc"
}
later I can add other languages.

in the captions.inc :

global text1="Hauptmenu";

and int the mainwindow.script
global text1;
self.text=text1;

at first: It does not work. I think its because of the #include (just work on top of file without a ';' ? )
How can I make it run?
How can i script It in a way I dont have to inital the varables in the file i used it, or in base.inc

i mean that i can do it in the captions.inc at once.
global text1="blablabla"
 an then i can use it in my files without say
global text1;

For that i have to include it, but then I can't do the if(language="de" thing)

Does anybody understand what I mean. I hope someone can help me.

ThX DraX

17
Technical forum / TGA transparency?
« on: December 30, 2003, 07:34:28 PM »
How can i make this transparent tga files like the ones in lensflare projekt?
I've used the search but there's no answer to my question.

If I open the files in photoshop or  photoimpact there's no transparency at all. And if I save transparent files as tga it will be white or black in the background if I import in Project Man.

What is the Trick about it? ???

Greetz and ThX
 DraX
 

18
Technical forum / change entities drawing position?
« on: December 25, 2003, 10:55:14 AM »
Hello, and merry Christmas to all!

At first  i have to say that my english is not good as nessesary for this board. but i try to explain my problems in a easy way, so i can use the few words i know.  ;)

I want to script a shadow script, which moves a shadow sprite to the x and y coordinates of the actor. That isn't a problem i think. But if the actor walks behind or in front of an entity (with a behind region) the shadow should switch always (in drawing the scene) directly behind the actor. is'nt it?

is it possible to change the "layers" in main layer during the game?

alternative i can draw in every pic from the actor a shadow. but there are many of them. :-\ :-\  

If i will ever finish this script, i will post it here.  


19
Technical forum / no error, but no music
« on: December 21, 2003, 02:10:58 PM »
how can i play music?

i have scripted this in my scene_init.script:

Game.PlayMusic("music\waves.wav");

the file is in the music folder.
i have no errors while playing the game, but there's no music. What is the problem? the soundcard drivers? the wav file is played correctly in other programms.
does anybody know?

Pages: 1 [2]

Page created in 0.105 seconds with 21 queries.