151
- April 25, 2024, 03:33:22 PM
- Welcome, Guest
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.
152
Technical forum / Game Main object
« on: August 30, 2010, 05:59:00 PM »
Hello I have been struggling for a couple of hours with a problem, which is that if I change the identity of an actor with the line
actor = Game.LoadActor("actors/r1/r1.actor");
initially everything seems to be fine, the new actor appears, and moves around, however the scrolling of the screen stops, after much trial and error I discovered you had to put in the line
Game.MainObject = actor;
is there an explanation for this behaviour in that the association of Game.MainObject is established in Game.script.
actor = Game.LoadActor("actors/r1/r1.actor");
initially everything seems to be fine, the new actor appears, and moves around, however the scrolling of the screen stops, after much trial and error I discovered you had to put in the line
Game.MainObject = actor;
is there an explanation for this behaviour in that the association of Game.MainObject is established in Game.script.
153
Game announcements / Re: Column22
« on: August 24, 2010, 10:25:35 AM »
if you get bored with the video's, tapping the space bar will stop them and you can move to the next bit of the game.
155
Game announcements / Re: Column22
« on: August 05, 2010, 12:41:46 PM »
Hello - quick update - I am thinking of create a demo for day1 if anyone would be interested in taking a look, please let me know. The demo maybe incomplete in some areas, specifically the sound files - if there is sufficient interest I will put this together in the next couple of weeks.
www.eborr.com
www.eborr.com
156
Technical forum / Re: Architectural Advice
« on: August 02, 2010, 11:29:32 AM »
many thanks it works very nicely both in the test harness and also in the main game, although I still ahve some concerns that it may affect performance - but lets wait and see on that
157
Technical forum / Re: Architectural Advice
« on: August 01, 2010, 11:40:12 PM »
thanks for the speedy answer so I would attach the script within Game.script. or have I misunderstood ?
158
Technical forum / Architectural Advice
« on: August 01, 2010, 05:07:53 PM »
The goal is this - in the game there will be music playing - say 20 tunes, the order in which those tunes are to be played is random. The playing of music is initiated by finding a radio in one scene. When the player leaves the scene the tunes will continue to be played unless the player turns off music as a menu item.
My question is this does the code which checks to see if music is playing have to exist in the main game loop ? I really don't like clutter in the main loop itself. Is is possible to create a method which will be persitent = eg it can check the state of a "do you want to hear music" global variable - or is there a nice neat and obvisous way to solve this.
My thinking for randomness is that music played will be stored in an array until such time as all the tunes have been played - then the whole thing will re-initialise.
Sorry for the ramble
My question is this does the code which checks to see if music is playing have to exist in the main game loop ? I really don't like clutter in the main loop itself. Is is possible to create a method which will be persitent = eg it can check the state of a "do you want to hear music" global variable - or is there a nice neat and obvisous way to solve this.
My thinking for randomness is that music played will be stored in an array until such time as all the tunes have been played - then the whole thing will re-initialise.
Sorry for the ramble
159
Game announcements / Re: Night Train - Demo ready for boarding!
« on: June 27, 2010, 10:50:21 PM »
very atmospheric, of course it's the kind of game you need to immerse yourself in to get anything like the full effect, and by it's nature your not going to get that in a very short demo - I am envious of your artistic talent.
160
Technical forum / Re: Difficult with PlayTheora() on a close up layer
« on: May 28, 2010, 12:15:20 AM »
I have no idea why the dynamic entity didn't work with the layer, my compromise was to set layer.Active attribute to false after that it all worked dandy.
The basic process was
the layer was activated
a new object was created which pointed at the script method
the method was called in the same script as the above two events
and with the layer.Active=true nothing happened
Once Layer.Active =false everything worked as expected.
The basic process was
the layer was activated
a new object was created which pointed at the script method
the method was called in the same script as the above two events
and with the layer.Active=true nothing happened
Once Layer.Active =false everything worked as expected.
161
Technical forum / Difficult with PlayTheora() on a close up layer
« on: May 27, 2010, 05:12:14 PM »
Hello
I have created a method to play thoera vids which has worked very nicely up til know. The problem occured when I tried to play the film on top of a close up layer. Doing a little bit of digging around I found that it played very nicely if it was assigned to an object in that layer, however the method I use creates a dynamic entity, and didn't appear to be comfortable with the layer. The system gave no error messages, so I can only assume the flim played "below" the layers, any thoughts
I have created a method to play thoera vids which has worked very nicely up til know. The problem occured when I tried to play the film on top of a close up layer. Doing a little bit of digging around I found that it played very nicely if it was assigned to an object in that layer, however the method I use creates a dynamic entity, and didn't appear to be comfortable with the layer. The system gave no error messages, so I can only assume the flim played "below" the layers, any thoughts
162
Game announcements / Re: Column22
« on: May 16, 2010, 08:24:54 PM »
Things have moved on a bit, not as much as I had hoped, if you have a minute step over to the site and share your thoughts
163
Technical forum / Re: Dialogue Window - Solved
« on: May 06, 2010, 02:37:49 PM »
Problem has been solved by using an entity container, thanks to those woh offered help
164
Technical forum / Entity containers Solved
« on: May 05, 2010, 11:54:18 AM »
Having done a simple search through the documentation and the forum in an attempt to come up with some example code and drawn a blank I would be really grateful if someone could share some code with me which shows 1. How an entity might be defined (including a talk function). 2. How that defined entity might be link to an entity container in a window. IE the enitity container attributes contain a refence to an entity as a file, what sort of file might that be. Thanks in anticipation.
Managed to find some stuff which helped me solve this
Managed to find some stuff which helped me solve this
165
Technical forum / Re: Dialogue Window
« on: April 29, 2010, 03:03:25 PM »
Myles if you could post your script that would be really handy, this little problem is driving me bonkers