Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Slasher on Sat 26/07/2014 21:23:26

Title: SOLVED: Thick line across screen showing
Post by: Slasher on Sat 26/07/2014 21:23:26
Hi,

this is now happening. A gui fades in (ghost), text spoken, gui fades out and I am getting this thick red line and it stays on the screen:
(http://i1181.photobucket.com/albums/x423/qikfire/AGSLINEACROSS_zps69d1fab9.png)

800 x 600 16 bit.

Any ideas as to why?

cheers


Title: Re: Thick line across screen showing
Post by: Crimson Wizard on Sat 26/07/2014 22:07:32
Your game is cursed?


Seriously, though, come on, slasher, you are here on forums for a very long time... Give more information!
What do you draw on screen, exactly? Dynamic sprites, guis, overlays? What drawing operations do you use? An excrept from script maybe?
Title: SOLVED: Re: Thick line across screen showing
Post by: Slasher on Sat 26/07/2014 23:02:14
Hi Crimson,

Ok.

The GUI showing of the ghost is 280 x 260 with a button as the ghost. Normally set to off.

This GUI gets called when a timer (lapsed) runs out.

At the same time GUI Gas shows.

EDIT: Looking at the game now I've just spotted something across the Gas GUI..... I'll be back...

EDIT: Call me a liar but it seems ags redrew the gas sprite for the gas gui with an image bar across it. I say this as it was fine before. Anyhow I re drew the sprite and imported it over existing sprite and back to ok. So back to happy days (nod)

Code (ags) Select

//Global repeatedly_execute()

if(lapsed==0 && Start_Game==true)
if (Game.DoOnceOnly("GAS")){
LLeft.Visible=false;
LRemain.Visible=false;
LET.Visible=true;
LDeath.Visible=true;

SetTimer(2, 40);
gGas.Visible=true;
gGas.TweenTransparency(1.7, 80, eEaseOutTween, eBlockTween);
aRebecca_Music.Play();
gRebecca.Transparency=100;
gRebecca.Visible=true;
gRebecca.TweenTransparency(1.20,40, eEaseOutTween, eBlockTween);
cCharles.Loop=1;
BRebecca.Animate(24, 1,4, eRepeat);
cEgo.SayAt(gRebecca.X+18, gRebecca.Y+15, 300, "You must get out of here before it's too late!");
cEgo.SayAt(gRebecca.X+18, gRebecca.Y+15, 300, "The gas will kill you within fifteen minutes!");
BRebecca.NormalGraphic=539;
cCharles.Say("But how?");
BRebecca.Animate(24, 1,4, eRepeat);
cEgo.SayAt(gRebecca.X+18, gRebecca.Y+15,  300, "My uncle has placed anti-gas pills in the cellar for his own protection.");
cEgo.SayAt(gRebecca.X+18, gRebecca.Y+15,  300, "You must find the bottle and take one anti-gas pill. It will stop the gas having any effect for quite a long time.");
BRebecca.NormalGraphic=539;
cCharles.Say("In the cellar you say?");
BRebecca.Animate(24, 1,4, eRepeat);
cEgo.SayAt(gRebecca.X+18, gRebecca.Y+15,  300, "Yes, in the cellar's storage room. Look for the blue bottle.");
cEgo.SayAt(gRebecca.X+18, gRebecca.Y+15,  300, "I must go now: I hear my uncle calling me.");
BRebecca.NormalGraphic=539;
Wait(40);
gRebecca.TweenTransparency(1.20,100, eEaseOutTween, eBlockTween);
gRebecca.Visible=false;
aRebecca_Music.Stop();
aEerie_Music.Play();
Need_Bottle=true;
DisplayTopB(90, 8, 65535, "Problem: Gas.", "Find the anti-gas tablets in a blue bottle in the cellar.");


;)



Title: Re: SOLVED: Thick line across screen showing
Post by: selmiak on Sun 27/07/2014 07:33:02
Quote from: Crimson Wizard on Sat 26/07/2014 22:07:32
Your game is cursed?
:-D
Title: Re: SOLVED: Thick line across screen showing
Post by: Slasher on Sun 27/07/2014 08:53:04
Don't mock the inflicted selmiak (laugh)

Anyhow, all sorted and it's a great game (if you have the bottle ;))