Menu

Show posts

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

Messages - dayowlron

#561
I would set a variable to be the string you are trying to add and possibly make this a function, however with what you have below you just need to add the string you are trying to add to the text in line 2.
Also don't know if this is an issue but if it is short enough you add it to label 1, otherwise you add it to label 2 whether label 2 is large enough or not. not sure if that could be a potential problem in the future or not.
Code: ags

{
  String msg = " Brother Tingwell has a shard of stained glass embedded in his robe.";
  int height = GetTextHeight(LNotes.Text + msg, LNotes.Font, LNotes.Width + 1);
 
  if (height >LNotes.Height)
  {
  LNotes2.Text=LNotes2.Text.Append(msg);
  }
  else //if (height <LNotes.Height){
  LNotes.Text=LNotes.Text.Append(msg);
}

the main part is adding in the new message when checking height like I did in line 3.
Another change you might want to consider is removing the if after the else statement since it is not needed and if height happened to equal LNotes.Height then the message would not be added at all.
#562
The Rumpus Room / Re: Name the Game
Fri 24/11/2017 03:08:42
Looks like Godzilla to me. I am going to guess Godzilla the game
Also Simcity. maybe it was when the godzilla monster came out.
#563
The Rumpus Room / Re: What's on TV?
Tue 21/11/2017 16:26:10
Knew it would be short. you are correct.
#564
The Rumpus Room / Re: Name the Game
Tue 21/11/2017 15:21:13
I dont think it is but that looks kind of like a Lara Croft game.
#565
The Rumpus Room / Re: What's on TV?
Tue 21/11/2017 15:01:28
I probably only seen a few episodes but knew that character looked familiar.
Mine will probably go faster than yours did.
#566
Set up a global variable boolean lets say "Unlocked" and set it to false.
from the editor create a "Use Inventory On Object" event for the object you have.
in the event do something like:
Code: ags

    if (Player.ActiveInventory == oKey) {
        Unlocked = true;
    }

Then in the code for the hotspot only execute it if Unlocked is true:
Code: ags

    if (Unlocked) {
        .... do something
    }

#567
The Rumpus Room / Re: What's on TV?
Tue 21/11/2017 14:19:57
That has got to be Sleepy Hollow.
#569
Quote from: Mandle on Sun 19/11/2017 22:14:31
Urine?
You are correct Mandle. they used urine and fecies for a lot of uses.
#570
(wrong) but close (sort of)
#571
No one has anything? OK Ill take my turn.
Ancient Romans used this substance as a mouthwash.
#572
Wow cool. I just knew they were presidents and father and son.
Anyone want to take my turn?
#573
John Quincy Adams? I know he was the son of John Adams and both were president, but dont know about any skinny dipping.
#574
The Rumpus Room / Re: Name the Game
Sat 18/11/2017 04:22:55
kinda reminds me of the art style used in "tremors"
#576
The Rumpus Room / Re: *Guess the Movie Title*
Fri 17/11/2017 20:09:02
A Hard Day's Night?
#577
The Rumpus Room / Re: The MSPaint game
Fri 17/11/2017 03:18:12
Grim Fandango 2: never played the game but looked up how he looked. I envision lines on the forehead and a cane.

Next Image: a Troll riding an elephant.
#578
Quote from: lorenzo on Thu 16/11/2017 08:43:10
Pearl Hart?
I think she was sent to Yuma Prison for robbing a stagecoach, but I'm not sure.
You got it, except from what I read it was a prison in Tucson. She had cut her hair and dressed in mens clothes.
#579
she did rob some banks and was an outlaw but never robbed a stagecoach.
(wrong)
#580
I started it, but my graphics looked so terrible that I never completed it. I am a good coder but I can draw worth shit. lol.
Who is the only woman known to have robbed a stagecoach?
SMF spam blocked by CleanTalk