Oh yes, this still happens! Join us! Still at approximately 2 PM London time, but we'll be waiting till a sufficient number arrive.
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: eri0o on Fri 03/11/2017 11:23:57
Hey, looking above (a piece of Game.agf xml) it's not stored if the alpha was made using leave-as-is, topleft pixel, no transparency, top right pixel... :/
Quote from: Crimson Wizard on Fri 03/11/2017 10:50:24
As I noted in my post above, not all sprites keep their links. Sprites copied from clipboard and sprites imported using "tiled import" feature do not have links stored.
function hDoor_Interact()
{
if(HasPlayerBeenInRoom(1) && HasPlayerBeenInRoom(2) && HasPlayerBeenInRoom(3) && HasPlayerBeenInRoom(4) && HasPlayerBeenInRoom(5))
{
player.ChangeRoom(6); // Or the room of your choice
}
else
{
Display("I don't feel like doing that.");
}
}
Quote from: Vainamoinen on Sat 28/10/2017 18:06:28
You must have known what to think of the guy's activism when he likened Escape from Monkey Island to an "old school" "Sierra" game.
Quote from: AnasAbdin on Sat 28/10/2017 10:40:37
The worst part of all, is the hack attacks on my twitter account. Now almost every time I log on my twitter I'm asked to enter a verification code sent to my personal mobile number to make sure it is me. Not to mention the amount of hate mail and malware sent to me
int GetPixelAlpha(this DrawingSurface *, int x, int y)
{
DrawingSurface *surface;
DynamicSprite *test;
DynamicSprite *white;
int alpha;
if(this.GetPixel(x, y) == COLOR_TRANSPARENT)
alpha = 0;
else
{
// Create a sprite from the pixel we're interested in
test = DynamicSprite.CreateFromDrawingSurface(this, x, y, 1, 1);
white = DynamicSprite.Create(1, 1, true);
surface = white.GetDrawingSurface();
surface.Clear(15);
surface.Release();
white.CopyTransparencyMask(test.Graphic);
surface = test.GetDrawingSurface();
surface.Clear(0);
surface.DrawImage(0, 0, white.Graphic);
white.Delete();
// Obtain the alpha from the green channel
// From the AGS source:
// agscolor += ((grn >> 2) & 0x3f) << 5;
// Green has the most precision
alpha = (surface.GetPixel(0, 0) >> 5 & 63) << 2 | 3;
surface.Release();
test.Delete();
}
return(alpha);
}
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.466 seconds with 15 queries.