Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

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

Pages: 1 [2]
16
Technical forum / Re: how to store multiple actors into array?
« on: May 02, 2008, 11:17:23 AM »
It's ok,thanks very much.

17
Technical forum / how to store multiple actors into array?
« on: April 29, 2008, 07:55:22 AM »
hi guys,i want to track  multiple actors in the scene.i define a global variable in the base.inc file like this:
global  actors = new Array();

then for a test ,i load a actor in the "LeftClick" function like this:

var actor1;
actor1=Game.LoadActor3D("actors\victor\victor.act3d");   
actors.Push(actor1); 
Game.Msg(actors.Length);

when i click the mouse more than one time, i found actors.Length always is 1.
why?

18
Technical forum / Re: how to set the game run in window mode only?
« on: April 09, 2008, 11:47:38 AM »
i use 1024x769,that's ok

19
Technical forum / how to set the game run in window mode only?
« on: April 09, 2008, 03:41:12 AM »
i don't want my users to run it in fullscreen mode but window mode only,how can i do?
thanks!

20
Technical forum / Re: Is there have timer in the WME?
« on: April 08, 2008, 10:08:27 AM »
it's greatful。aha,the engine is powerful,thanks very much.i'm a chinese and is developing a simulation game for education。i found few of people know this engine in china,so i decide to write some articles to introduce it,i also want to translate the help document to chinese,can i do it?
thinks for Mnemonic's greatful working again。 ;)

21
Technical forum / Is there have timer in the WME?
« on: April 08, 2008, 06:39:57 AM »
hi,
I want to use a timer to get some data from server,ex get a string from the server per 3000ms,how can i do in the WME?Thinks.
another problem,i want to use a tread to get the data from the server,is tread supported in the wme?

22
As far as I remember, delphi forms have a "StayOnTop" or "alwaysOnTop" somewhere, in the window style or as a special property. I don't know wether this works while directX is handling a full screen device, but it should work. Otherwise, try the bringToFront() method.

BUT ... Having normal windows.forms windows appear while a directx fullscreen window is launched is always tricky and may crash on some systems, or slow down the engine on others. It's never a good idea to steal the focus of a directX surface.

Try using WME windows instead. You could use a screenshot of your window to preserve the visual appearence, and remodel the window with wme controls.
"StayOnTop" or bringToFront() even use Window's API setwindows all have not effect in the fullscreen mode,but work well in the window mode。I use normal windows forms because my game has many data input and output  forms,also many  forms have complex layout, it's terribly and impossible if i use WME's UI controls。I think use a normal windows form that contains a webbrowser control is a good idea。I display the normal windows form top of the game scenes,my clients use web pages input their data and view all kinds of  report,my game will connected to the web server retrieve data and redraw the scenes......
anybody can help me?

23
hi,
I want to use the windows's UI in the game,ex window,button,list box,checkbox and so on,I use delphi write a function in dll file:

h := GetForegroundWindow;
Form1:=TForm1.CreateParented(h);
form1.ShowModal;
setwindowpos(form1.Handle,hwnd_topmost,0,0,0,0, swp_nosize or swp_nomove);
form1.Free;


then call it in the script:
external "D:\Program Files\Borland\Delphi6\Projects\dll.dll" TestDll(int);
...
TestDll(55);
...


it works like:



here is the problem,sometime the showmodle window open and show back of the game surface,sometime it's open and show front of the game surface.
how can i open and show the window front of the game surface always?

24
Technical forum / Re: Arabic text in WME
« on: April 02, 2008, 10:40:19 AM »
perfect,i met the same problem,thank you very much.

Pages: 1 [2]

Page created in 0.068 seconds with 23 queries.