Nikolas, nice job with the post, thanks for doing it!
Dualnames, if the game got you to think, then it has done its job. Huzzah!
Dualnames, if the game got you to think, then it has done its job. Huzzah!
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: Sparkplug.Creations on Fri 11/09/2009 22:08:18Quote from: NsMn on Fri 11/09/2009 21:53:48
That can only be because the sprite of the animation is wider. Also remember that the object's position always is the lower-left corner.
I think that's it. The sprite animation frames are 318x318 and the Predator object is 128x33.
Anyway I can offset this? One idea I have is to change the view of the predator to the explosion view, making sure the first frame is clear. This will make it look like it disappeared. Then, I move the invisible predator object to a new location (offsetting from where it was) so that when the animation plays, it looks like its centered on where it was.
Is there an easier way? Somehow reset the animations' origin?
Quote from: NsMn on Fri 11/09/2009 21:53:48
That can only be because the sprite of the animation is wider. Also remember that the object's position always is the lower-left corner.
if (bCheckCollisions == true)
{
// EXPLOSION
if (oHellfire.IsCollidingWithObject(oPredator))
{
//Display("KABOOM");
//ShakeScreenBackground (int delay, int amount, int length)
ShakeScreenBackground(5, 15, 20);
oPredator.StopMoving();
//oPredator.Visible = true;
oHellfire.Visible = false;
oPredator.SetView(4);
oPredator.Animate(0, 5, eOnce, eNoBlock, eForwards);
// Stop moving the missile
moveHellfire = 2;
}
}
Error: String is too long: Executive Branch confidentiality interests
Version: AGS 3.0.2.42
AGS.Types.AGSEditorException: String is too long: Executive Branch confidentiality interests ---> AGS.Types.AGSEditorException: String is too long: Executive Branch confidentiality interests
at ConvertStringToCharArray(String clrString, SByte* textBuffer, Int32 maxLength)
at save_crm_file(Room room)
at AGS.Native.NativeMethods.SaveRoomFile(Room roomToSave)
at AGS.Editor.Components.RoomsComponent.SaveRoomOnThread(Object parameter)
at AGS.Editor.BusyDialog.RunHandlerOnThread()
--- End of inner exception stack trace ---
at AGS.Editor.BusyDialog.Show(String message, ProcessingHandler handler, Object parameter)
at AGS.Editor.Components.RoomsComponent.SaveRoomButDoNotShowAnyErrors(Room room, CompileMessages errors, String pleaseWaitText)
at AGS.Editor.Components.RoomsComponent.SaveRoomAndShowAnyErrors(Room room)
at AGS.Editor.Components.RoomsComponent.AGSEditor_PreSaveGame(PreSaveGameEventArgs evArgs)
at AGS.Editor.AGSEditor.PreSaveGameHandler.Invoke(PreSaveGameEventArgs evArgs)
at AGS.Editor.AGSEditor.SaveGameFiles()
at AGS.Editor.Components.FileCommandsComponent.CommandClick(String controlID)
at AGS.Editor.GUIController._mainForm_OnMenuClick(String menuItemID)
at AGS.Editor.MainMenuManager.MenuEventHandler(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripMenuItem.ProcessCmdKey(Message& m, Keys keyData)
at System.Windows.Forms.ToolStripManager.ProcessShortcut(Message& m, Keys shortcut)
at System.Windows.Forms.ToolStripManager.ProcessCmdKey(Message& m, Keys keyData)
at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Form.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
Quote from: KhrisMUC on Mon 28/07/2008 10:20:18
To convert the distance to a transparency value, you'll need a little more math.
Say you want the following relationship:
Distance = 0 -> Transparency = 0 (opaque)
Distance = x -> Transparency = x (fading)
Distance >= 200 -> Transparency = 100 (invisible)Code: ags int t = intDistObject01/2; if (t > 100) t = 100; oTestObject01.Transparency = t;
intTransTestObj01 = intDistObject01;
if (intTransTestObj01 < 10)
{
intTransTestObj01 = 10;
}
else if( intTransTestObj01 > 90)
{
intTransTestObj01 = 90;
}
else
{
oTestObject01.Transparency = intTransTestObj01;
}
intDistObject01 = IntToFloat(Maths.Sqrt((oClearArea.X - oTestObject01.X)*(oClearArea.X - oTestObject01.X)+(oClearArea.Y - oTestObject01.Y)*(oClearArea.Y - oTestObject01.Y)));
lblDistObj01.Text = String.Format("Distance: %d",intDistObj01);
Quote
Failed to save room room12.crm; details below
room12.asc(524): Error (line 524): Type mismatch: cannot convert 'int' to 'float'
intDistObject01 = Maths.Sqrt((oClearArea.X - oTestObject01.X)*(oClearArea.X - oTestObject01.X)*(oClearArea.Y - oTestObject01.Y)*(oClearArea.Y - oTestObject01.Y));
lblDistObj01.Text = String.Format("Distance: %d",intDistObj01);
Quote
Failed to save room room12.crm; details below
room12.asc(524): Error (line 524): Type mismatch: cannot convert 'int' to 'float'
Quote from: Pumaman on Sun 13/01/2008 15:42:24QuoteI'm working with larger than normal character sprites 591 tall by 351 wide (temp size for testing purposes) and when I go to preview the animations, the preview window is not able to show the whole view at once. Here's a picture of what I'm seeing:
It's a reasonable point, 2.72 did this as well. I guess ideally it should scale down the sprite to fit the preview window.
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.055 seconds with 13 queries.