You have an extra brace at the end of this line.
Code: ags
cBigworm.Animate(cBigworm.Loop, 13, eRepeat, eNoBlock);}
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 cBigworm.Animate(cBigworm.Loop, 13, eRepeat, eNoBlock);}
QuoteWhere can I get it?
Here, but BE CAREFUL. It's not yet a final official release, so keep a backup copy of your game before trying it out.
Quote from: Electroshokker on Sat 19/01/2008 13:47:13
- a better/quicker way to load sprites into loops.
=> I want to be able to select a whole series of sprites and go "import into loop x", rather then having to enter the sprite number for each frame seperatly. This is a time-killer if you got a rather large animation.
QuoteError: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Version: AGS 3.0.0.20
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at draw_room_background(Void* , Int32 , Int32 , Int32 , Int32 , Int32 , Int32 , Int32 )
at AGS.Native.NativeMethods.DrawRoomBackground(Int32 hDC, Room room, Int32 x, Int32 y, Int32 backgroundNumber, Int32 scaleFactor, RoomAreaMaskType maskType, Int32 selectedArea)
at AGS.Editor.RoomSettingsEditor.bufferedPanel1_Paint(Object sender, PaintEventArgs e)
at System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.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: ncw14 on Mon 24/12/2007 19:08:29Yes. A shorter way to do it would be
so all i would have to do it that then for every battle instead of
GiveScore (-25)
make it
health=health-25
?
health -= 25;
QuoteThe problem is that you declared health inside game_start. This means that you can only use this variable inside of game_start. You need to declare it at the very top of your global script.
it tells me undefined token health
how do i define it
now it says cannot convert String*Int
this is what i have under game_start for int
int health = 100'
QuoteIt needs to have an opening brace as well. Something like this:
under repeatedly_execute i have
if (health <= 0)}
how do i define it
if (health <=0)
{
//The code you want to run when he dies.
}
if (health <= 0)
{
//Do whatever happens when your player dies.
}
LabelWithHealth.Text = String.Format("%d", health);
if(mouse.Mode == eModeInteract)
{
if(player.ActiveInventory == null)
{
lblStatus.Text = "Use ";
lblStatus.Text.Append(Game.GetLocationName(mouse.x, mouse.y));
}
else
{
lblStatus.Text = "Use ";
lblStatus.Text.Append(player.ActiveInventory.Name);
lblStatus.Text.Append(" with ");
lblStatus.Text.Append(Game.GetLocationName(mouse.x, mouse.y));
}
}
Quote from: Mirek on Fri 21/12/2007 17:50:38
I think it wants something original!
http://spoluzaci.im.cz/picture/8898/110638898.jpg?A49x6eaa8f02
Alien is checking if the ice isn't too thin! 8)
About 20 colors.
[EDIT] Oh noooooo, I must post it here.... At 22th it will be here!
Quote from: def on Fri 23/11/2007 20:08:36
Loading up the latest 3.0 editor beta gives me:Quote
---------------------------
Error
---------------------------
An unexpected error occurred trying to start up the AGS Editor. Please consult the details below and post the error to the AGS Technical Forum.
System.BadImageFormatException: Could not load file or assembly 'AGS.Native, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
File name: 'AGS.Native, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
at AGS.Editor.NativeProxy..ctor()
at AGS.Editor.NativeProxy.get_Instance()
at AGS.Editor.ApplicationController..ctor()
at AGS.Editor.Program.startupTimer_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeW indow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callb ack(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
2.72 runs without any trouble though. Running Vista x64 with the latest .NET Framework installed.
Quote from: subspark on Tue 13/11/2007 16:25:31
EDIT: Instead of a category field, could we perhaps have separate sections for more comfortable viewing. For example:
+-Audio
----Music
----Sound
----Speech
Quote from: smiley on Tue 13/11/2007 10:39:39
Thanks for the feedback!
@KhrisMUC:
Right, somehow I forgot to change that. In the new version the row is selected on right-click.
@VK Dan:
1.
You probably need this DirectShow filter for ogg files:
http://www.illiminable.com/ogg/oggcodecs_0.71.0946.exe
2.
I can't reproduce the error message, but it should be fixed now.
3.
Yeah, the filter was a bit too sloppy. It's stricter (but not perfect) now.
---------------------------
AudioManager
---------------------------
A problem occurred in initializing MCI.
---------------------------
OK
---------------------------
Error: Value of '373' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
Parameter name: Value
Version: AGS 3.0.0.15
System.ArgumentOutOfRangeException: Value of '373' is not valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
Parameter name: Value
at System.Windows.Forms.TrackBar.set_Value(Int32 value)
at AGS.Plugin.AudioManager.AMPane.moveTrackbar(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Quote from: ezra on Fri 09/11/2007 05:20:20
I was really just interested in how well the AGS system can support such graphics. Will it run very slowly? Is it clunky? Curse of MI was only 640x480 resolution (I think) and it only used 16 colours (I think). It looked brilliant. Can I get those sort of high-quality, seamless graphics with AGS?
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.115 seconds with 16 queries.