Please login or register.

Login with username, password and session length
Advanced search  


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.

Messages - Mikael

Pages: 1 ... 7 8 [9]
Technical forum / Basic question about variables
« on: March 13, 2007, 06:40:37 PM »
OK. I'm just trying to learn how to use variables. What I'm trying to do is extremely basic, and I'm sure that I will sound like a complete fool, but here goes:

(I have been searching the documentation and forum for hours, but haven't found an answer).

Let's say that I have a switch that opens a door, and that I use a global variable called "dooropen". If I have clicked the switch, and then click the door, the door will open and take us to the next scene, and if I have not clicked switch, we will just hear the sound of the door handle.

Let's say that clicking the switch sets the variable "dooropen" to "1". Am I right in assuming that I just use the following code in the region entity for the switch?
global dooropen = 1;

OK, then there is the question about what code to use for the region entity for the door. I've tried every possible combination of something like this:

global dooropen;
if(dooropen = 1)
on "LeftClick"
  Game.PlayMusicChannel(1, "sounds\xxx.ogg", false);

(I'm sure that there are better ways to play the sound than through a music channel, I just haven't gotten that far yet).

That's it. As I said, extremely basic, but once I can grasp this, I think I can master the method of variables.

Thanks in advance!

Technical forum / Re: Problems with Smart Cursor (I think?)
« on: March 13, 2007, 05:25:56 PM »
Once again, thanks.



Technical forum / Problems with Smart Cursor (I think?)
« on: March 13, 2007, 03:06:13 AM »
I have this problem with inventory objects. When I move a certain object over an entity in the scene, I get the "Use object with" text, wether the inventory object is set for an event with the entity or not. I understand that I can fix this with "Game.SmartItemCursor = true;", but I can't get it to work. I've tried it everywhere, including the game.script file. Where exactly should I put it?

Once again, thankful for any help!



Technical forum / Re: Problems with continuous music
« on: March 12, 2007, 11:17:01 PM »
Worked perfectly! Thanks!

Technical forum / Problems with continuous music
« on: March 12, 2007, 10:31:48 PM »
I've just started playing around with WME. I'm extremely impressed by the seemingly endless possibilities, but I've decided to explore the basics thoroughly to begin with.

I'm sure that I will come up with lots of questions, and the first one has to do with music.

Let's say that I have a scene where you can walk around in a series of scenes, with the same music in all scenes. If I set the music to play like this: "Game.PlayMusicChannel(0, "music\FirstChannel.ogg", true);" in the first scene, the music will go on playing in the rest of the scenes, off course. When I return to the first scene, however, the music will start from the beginning. How do I do to make the music play seamlessly, and only start again when it's not playing? I also want the music to start playing in the rest of the scenes, when a player loads a saved game from any other scene than the first one. I guess that this means that I have to set the music just like in the first scene in all the others. That is no problem, except for the fact that when I do it, the music starts playing from the beginning in all scenes.

Thanks in advance for any possible help!

Technical forum / Re: Vista question etc.
« on: March 11, 2007, 11:33:49 AM »
Thanks for the excellent replies!

It obviously sounds promising. I have some completing questions before I dive into the program.

Is there any limit to how many "rooms" you can use? I'm interested in using at least 1,000 rooms, or frames, or whatever you want to call it. I know that some of the other engines out there has limitations on this. Is it time consuming to constantly switch between these rooms during the game making process?

How many sound channels are available?

Thanks again in advance!

Technical forum / Vista question etc.
« on: March 11, 2007, 02:00:20 AM »

I'm on the lookout for a new engine for my games, and I've heard so many good things about this one. I have three questions:

I know that WME runs on Vista, but are games created with WME compatible with Vista?

Is the engine suitable for creating 1st person games?

Are much coding needed when using the engine?

Thanks in advance!


Pages: 1 ... 7 8 [9]

Page created in 0.043 seconds with 18 queries.