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

Topics - GrogGames

#1
We are trying to simulate Imuse on AGS.
Imuse is, for example, what happens on Monkey Island 2 while you´re walking by the wharf (and then you go to see the carpenter, Wally, etc.) where the game starts. The theme changes without altering the main melody.

As, actually, it´s not able to reproduce more than one midi at the same time. What we do is to use several midis at same times, and change from one to another using getmidiposition and seekmidi.
The problem is that during that change, the instruments´ volumes are badly heard, they doesn´t load on time, and then the change isn´t good.

I wonder if, maybe, on the next version or in a nearby future, you can fix that error or make AGS able to reproduce more than one midi at the same time.

www.groggames.com.ar/proyecto/imuse.zip

In this exaple, the same midi is used for the 3 areas. But  that is of no interest, what matters is how the instument's sound changes. If you go to the white area the sound stops and when going to the colour area the sounds will start fine. Then when going to another area the instuments will be heard with other volumes.

used in Repetaedly Execute of Room:
Code: ags

Region *reg= Region.GetAtRoomXY(player.x, player.y);
  if(GetCurrentMusic() != reg.ID)
   if((GetMIDIPosition()%4 == 0)||(GetCurrentMusic()==-1))//only change when a compass ends
      {
      int pos = GetMIDIPosition();  
      StopMusic();
      PlayMusic(reg.ID);
      SeekMIDIPosition(pos); 
    }



Thank you, Nahuel36
SMF spam blocked by CleanTalk