Menu

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.

Show posts Menu

Messages - Ghostlady

#161
I am not understanding this part of the script:

 int low_volume = 20;
        if (MusicVolumeSlider.Value < 20) // assuming you have a volume slider called "MusicVolumeSlider"
            low_volume = MusicVolumeSlider.Value;

Where is the volume slider?  Is this a global int?
#162
If I use this gui, which is the overall functional gui for both characters that drops down when rolling your mouse at the top of the screen, and add something like a Up and Down arrow or a music note and if they click on it do I need another gui with a slider?



This would be for all sounds and music so if I use the bottom script, would I put that code in each room where I want to check for sound/music?
#163
How can I lower the music for a couple seconds to a allow a sound to play and when the sound has ended, bring the music back to the same level?

Is there a way to have a control for the player so they can adjust the music level or turn if off if they want to?
#164
Good point.  Let me think about this.
#165
Hello,

I have imported an old game into the latest AGS 3.6.0 software. The games images (rooms) were created at 640 x 480 and the game resolution was created with 640 x 480.  I would like to enhance the images and give a bigger resolution.  Can I change the game resolution for example to 1280 x 1024 to match the enhanced images without breaking the game?
#166
The only difference is that I probably overwrote a save and not created a new one.  But like you said probably not worth testing anymore.
#167
These are the items done and the timeline:
1. Imported old game into latest AGS software
2. Had to make numerous coding changes to get a final run
3. Started playing the game and making new saves since I am updating numerous things
4. Decided I wanted to animate a particular room that was not animated previously
5. Updated that room with a total of 5 images where before there was only one
6. I used a save from item #3 since I was near the end of the game and didn't want to play it again to this point
7. Got to this room and it was not animating
8. Changed my first room to teleport me to the room I wanted animated (#5) and it immediately started animating
9. I did not have a fixed bg for this room or in the global script.
Hope this helps.
#168
I figured it out.  I forgot about the saving and you can't add anything new to the rooms and I was using a save.  Instead I teleported straight to the room and now it is animating.
#169
I couldn't find how to "Find dialog in AGS" but I searched the two global scripts and neither of them have SetBackgroundFrame.  The BackgroundAnimationDelay is set to 25.

I have another room that uses background animation, which is set to 25, and it came in with the old game and it works perfectly.
#170
I don't have that set in the room script. Actually it's a very small script with not too much going on.  That's why I was thinking it's an old game script vs current AGS version issue.

Here's the script:

// room script file

#sectionstart room_a  // DO NOT EDIT OR REMOVE THIS LINE
function room_a() {
  // script for Room: Repeatedly execute
if (Hotspot.GetAtScreenXY(mouse.x, mouse.y) == hLeft) {
      mouse.UseModeGraphic(eModeUsermode3); }

}
#sectionend room_a  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart hotspot1_a  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot1_a() {
  // script for Hotspot 1: Interact hotspot
player.ChangeRoom(94); 
}
#sectionend hotspot1_a  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart room_b  // DO NOT EDIT OR REMOVE THIS LINE
function room_b() {
  // script for Room: Player enters screen (before fadein)
mouse.DisableMode(eModeWalkto);
PlaySound(32); 
}
#sectionend room_b  // DO NOT EDIT OR REMOVE THIS LINE
#171
I've added some extra backgrounds into a room to allow some things to animate.  It doesn't seem to be working. It's marked in the properties that animate is active. Is there some code I need to add due to adding a new function to older code?
#172
I was thinking of changing the sound volume in game but if I can do a particular sound file and turn up the volume while it is playing in the room that will work.

I'll create a new post for any new questions not related to upgrading a game. 
#173
Is there a way to globally turn up the volume whenever a sound is being played?
#174
PERFECT! I used the first suggestion and it's working as expected.
#175
It's in the Event where the player enters the screen before fade in:

#sectionstart room_b  // DO NOT EDIT OR REMOVE THIS LINE
function room_b() {
  aMusic3.Play();
  // script for Room: Player enters screen (before fadein)
mouse.DisableMode(eModeWalkto);

I'll try the  IsMusicPlaying()  command.
#176
I'll check those out.  One other thing.  In the old version, if there is music playing, I can travel from room to room without it interrupted.  What it is doing now is restarting the music from the beginning each time I enter a room.  Its the same song.  How do I fix that?
#177
Ok I found them in the Explore Project under Audio.  I don't even know how I missed that.  The sounds seem lower in this newer version.  I can definitely hear a difference pulling the game up in both versions.  I'll do some tweeking to get the sounds louder.

My goal is to keep much of the old script as possible.  I am trying to make it more current with better playability.  For example, in the old version, if you hit Alt Tab to maneuver out of the game screen temporarily to hit a webpage for example, the game display becomes all garbled with bright pink lines running through it and you have to close it out.  With the new version it does not do that.  Alt Tab will take you out and put you back in with no problems.  Also, the display seems too stretched on the older version. There is one bug I want to fix and also add a "skip" option on most of the puzzles.  Currently there is no voice and am considering adding that too.
Overall, it's playing great from a version created 17 years ago without much coding effort on my part!!!

Many many thanks to everyone who kept working on this software!
#178
How do I get to my music and sound files within AGS?  It looks like the PlaySound command is not valid with this version.  It is playing a sound file but it seems quite low and hard to hear.
#179
That's a good idea. I believe I've done that in the past. Trying to get back into the swing of AGS things, been away too long.
#180
Ah, I added a globel variable to replace a GetGraphicalVariable command.  Ok, good to know.  I started over and it was resolved.
SMF spam blocked by CleanTalk