Thanks for this wicked AGS!
(second time posting.. seems the forums didn't like me complimenting AGS and timed out)
(second time posting.. seems the forums didn't like me complimenting AGS and timed out)
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 MenuQuote from: Pumaman on Mon 22/12/2008 19:50:24Negative. It only accesses it whenever the speed is higher than zero and a collision was detected.
Is that bit of script in repeatedly_execute or some sort of place where it could be running too many times?
QuoteWhen the problem happens, can you place a breakpoint on that PlaySoundEx line and see if the script is repeatedly running there?I wasn't sure what you meant by breakpoint. So I installed a fail safe button. A.
if (keycode==65) { //press A
a=true;
StopChannel(1);
StopChannel(2); //just for the sake of doing it
StopChannel(3);
StopChannel(4);
StopChannel(5);
StopChannel(6);
StopChannel(7);
StopAmbientSound(1);
StopAmbientSound(2); //just for the sake of doing it
StopAmbientSound(3);
StopAmbientSound(4);
StopAmbientSound(5);
StopAmbientSound(6);
StopAmbientSound(7);
StopMusic();
}
QuoteThat sounds pretty unusual to me. I presume you haven't changed the music volume down to make it silent?I again double checked to see if I could have been wrong. The only time setdigitalmastervolume command is run whenever a new room is loaded or esc is pressed.
QuoteNext time that happens can you post here what your mouse cursor is hovering over in the script? It looks like an error trying to pop-up the help window when you hover over a variable/function.I can tell you approximately what I did from the 2 times this happened.
function room_RepExec()
{
[...plus the code....]
[..I also didn't copy or delete the bottom half of the script with the closing bracket..]
if (IsChannelPlaying(4)==1) StopChannel(4);
PlaySoundEx(15, 4);
Error: StartIndex cannot be less than zero.
Parameter name: startIndex
Version: AGS 3.1.0.60
System.ArgumentOutOfRangeException: StartIndex cannot be less than zero.
Parameter name: startIndex
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at AGS.Editor.ScintillaWrapper.CheckFunctionForLocalVariables(Int32 currentPos, ScriptFunction func, String scriptExtract)
at AGS.Editor.ScintillaWrapper.GetListOfLocalVariablesForCurrentPosition(Int32 currentPos)
at AGS.Editor.ScintillaWrapper.FindLocalVariableWithName(Int32 startAtPos, String nameToFind)
at AGS.Editor.ScintillaWrapper.GetFinalPartOfExpression(Int32 currentPos, ScriptStruct& memberOfStruct, Boolean functionsOnly)
at AGS.Editor.ScintillaWrapper.ShowCalltip(Int32 openingBracketPos, Int32 parameterIndex, Boolean functionsOnly)
at AGS.Editor.ScintillaWrapper.scintillaControl1_DwellStart(Object sender, DwellStartEventArgs e)
at Scintilla.ScintillaControl.DispatchScintillaEvent(SCNotification notification)
at Scintilla.ScintillaControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Quote from: KhrisMUC on Mon 15/12/2008 14:08:23
You don't need hotspots.
Keep a 2-color copy of the current background in a second DrawingSurface, then erase terrain on both the actual screen and the copy.
To check if there's terrain or not, use DrawingSurface.GetPixel.
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.179 seconds with 15 queries.