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

Pages: 1 ... 7 8 [9] 10 11 ... 30
121
Technical forum / Re: Music Plays Too Long
« on: March 26, 2009, 03:44:43 AM »
Thanks, Azrael and Birdline---have this nailed down now--no more problems.   ::beer   Cheers.  :  )

122
Technical forum / Re: 3 question in wme
« on: March 25, 2009, 03:13:08 AM »
You don't have to apologize for your questions.  I asked a lot of them.  Some of them were ignorant (not stupid but ignorant because I didn't know certain things).  That's how I learned--by asking a lot of questions and not caring if they were ignorant or even stupid.  :  )  But it's important to post your code so someone can examine it and see where it needs some improvement and to post your code errors that show up in either your SceneEdit log or your WME log so Mnemonic and others can help you.  If you don't know how to find your WME log or your SceneEdit log, please say something.  :  ) 

And if you want to use one object on another you have to code them for example use crow on bar to make crowbar.  You make item crow and item bar and then code both crow script and bar script as follows:

Code: WME Script
  1. #include "scripts\base.inc"
  2.  
  3. on "LeftClick"
  4. {
  5.     Game.SelectedItem = "crow";
  6. }
  7.  
  8. on "bar"
  9. {   Game.TakeItem("crowbar");
  10.     Game.DeleteItem("bar");     
  11.         Game.DeleteItem("crow");
  12. }
  13.  
  14. and on crow:
  15.  
  16. #include "scripts\base.inc"
  17.  
  18. on "LeftClick"
  19. {
  20.     Game.SelectedItem = "bar";
  21. }
  22.  
  23. on "crow"
  24. {   Game.TakeItem("crowbar");
  25.         Game.DeleteItem("crow");
  26.         Game.DeleteItem("bar")
  27.         }
  28.  

So each object can interact with the other and you get a new object--it's all there in the WME Book. 

But it's very important to remember that when you're coding an object and deleting it that you put all the script necessary to run BEFORE the deleteitem of the item you're talking about-- because once you delete the item you're talking about-- the script that follows will not kick in cause the item is gone--so get into the habit of deleting your items that you are talking about at the very end of your script.


123
Technical forum / Re: 3 question in wme
« on: March 24, 2009, 04:09:04 PM »
The source files are there on the upper left of the page.

http://res.dead-code.org/doku.php/wmebook:start

Under Preface, click on Resources--resources for all the chapters are there. 

124
Technical forum / Re: Music Plays Too Long
« on: March 23, 2009, 08:52:46 PM »
Thanks, I have a Switch Music function that can be adapted. 

125
Technical forum / Re: Music Plays Too Long
« on: March 23, 2009, 02:35:17 PM »
Thanks, Azrael, I will give that a try.

126
Technical forum / Re: Music Plays Too Long
« on: March 23, 2009, 05:31:56 AM »
The problem is that I have many scenes that make up an area.  But you can go to these scenes from many other areas on a map. So sometimes 2 musics are playing because the game gets confused as it enters a new area on the map from a scene that was playing the music for the old scene/area.  It's complicated.  It should be simple but it's not -- at least not so far.  I've tried a lot of things including making a method to switch music.  Thanks, Birdline. Could you email me (catacomber@gmail.com) your email so I could send you a link for the game and you could take a look? You seem to have the music aspect nailed down.  ;  )

127
Technical forum / Re: Limits
« on: March 22, 2009, 04:16:44 AM »
Thanks, Chaos.  It's working fine for me with storing the pngs/jpegs etc in their individual scenes and describing where they are in the items/items folder.  That is really a big help because otherwise my items/items file would be very large and hard to navigate.

I hadn't tried to store the scripts for the items in their individual scenes but that would not be a bad idea as the items folder is so large and it would be nice just to have the items/items list there--so now working to spread out the scripts. 

I tried compiling the game this way and no problem.

Thank you very much.  You are an angel from heaven!!!!

128
Technical forum / Re: Music Plays Too Long
« on: March 22, 2009, 04:14:17 AM »
It's a little more complex as I have the same music playing in various scenes in a section and I don't want to have to restart the music each time you go from scene to scene in a section.  Would like it to play consistently from scene to scene in a given section without stopping or restarting. 

Am trying to work it out.  Thanks for your help.  It's much appreciated.

129
Technical forum / Re: Music Plays Too Long
« on: March 21, 2009, 04:20:49 AM »
This is still a touchy problem for me as Game.StopMusic(); before Game.PlayMusic(); does not always work for some reason.  Am trying to figure out why. My music files are large.  Don't know if that has anything to do with it. 

130
Technical forum / Re: Limits
« on: March 20, 2009, 02:47:42 PM »
Is there any problem storing the graphics for the Items file in each scene they appear in?  Otherwise my Items folder is horribly long and hard to navigate.  I started doing that and don't see any problem so far but would like to check.  Thanks.   :P

131
Technical forum / Re: Music Plays Too Long
« on: March 20, 2009, 02:46:03 PM »
Thanks, I will try all of those.  :  )  It's only a problem in one area and should solve it.  Thanks a lot.

132
Technical forum / Re: Limits
« on: March 12, 2009, 04:43:44 PM »
Thank you, Mnemonic, I will.  ;  )

133
Technical forum / Re: Music Plays Too Long
« on: March 12, 2009, 02:42:04 PM »
Thanks.  I will have to do the changing of scenes a little differently--sometimes game seems to get confused.  Making a switch music method that might help.

134
Technical forum / Re: Limits
« on: March 12, 2009, 02:40:30 PM »
That's very helpful. Thanks, Mnemonic.  What about the Menu file with the verb bars.  If not used, can they be safely removed?  Or is there code somewhere not commented out that refers to them.

135
Technical forum / Re: Limits
« on: March 12, 2009, 05:00:02 AM »
:  )  Thanks.  I sincerely hope 4 gigs is not in my future.   : )

Pages: 1 ... 7 8 [9] 10 11 ... 30

Page created in 0.1 seconds with 24 queries.