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 - zeta_san

#41
sorry @Crimson Wizard you're right


@Khris
I placed the code in the repeatedly_execute function in globalscript.asc
I made the GUI called gLocationName with a label as you described.

The mistake is
Local variable cannot have the same name as an import
#42
Quote from: Khris on Thu 12/04/2012 23:48:58There are lots of threads about this already since that question gets posted about once per month.

Basically, create a small GUI (~ 100 x 10 pixels, visibility: Normal, on) with border and background color 0 (= transparent) and put a label on it.

To have it always next to the cursor, reposition it in the Globalscript.asc's repeatedly_execute function. If you called the GUI gLocationName, the code should be:

Code: ags
  int x = mouse.x + 3;
  int y = mouse.y + 5;
  InventoryItem*ii = InventoryItem.GetAtScreenXY(mouse.x, mouse.y);
  Label*lbl = gLocationName.Controls[0].AsLabel;
  String text;
  if (ii) text = ii.Name;
  else text = Game.GetLocationName(mouse.x, mouse.y);
  if (x > 250) x = (x - 6) - GetTextWidth(text, lbl.Font);
  gLocationName.SetPosition(x, y);

(There's also the @OVERHOTSPOT@ token which if put as text of the label will always show the name, too, but afaik this doesn't work for inv items.)


hi, I tried to insert this into my Tumbleweed style code, but it doesn't work.. it gives me error
#43
Perfect
#44
Thank you ! I'll try and let you know
#45
Hi everyone
I would like to find a solution to a problem.
My character enters the quesroom and there are 2 talking
I would like them to say random sentences, different sentences every time I enter.
I also read some solutions here but I can't solve it
#46
probably the mistake was deleting the rows. I thought I had to create a file for each language.

but if I write the translations under the original, how do I change the language?
#47
I tried but there was some error. If this method works then try the procedure again

thanks
#48
Beginners' Technical Questions / translate
Wed 08/02/2023 18:44:28
Hi everyone

how can i translate the game ? I would like to make it playable in other languages ��as well.
i'm using Tumbleweed template
#49
ok, thanks :smiley:
#50
only this? nothing else ?
#51
all available yes
#52
hi khris

in this case?



Code: ags
if (destinationArtena == true) {
  oTartena.Visible = true;
} else {
  oTartena.Visible = false;
}

if (destinationMilano == true) {
  oTmilano.Visible = true;
} else {
  oTmilano.Visible = false;
}

if (destinationRoma == true) {
  oTroma.Visible = true;
} else {
  oTroma.Visible = false;
}

ecc..
#53
hi boys

I would like to do one thing, I need a dynamic object list

when the object is visible (true) it appears creating a list

example

if only 1 and 2 are true
the list will be

1
2

if only 5 and 7 are true
the list will be

5
7

I hope I was clear
thank you
#54
thanks I'll try
#55
Hello guys

Is it possible to place the same character in different rooms?
meet him in the room, make an appointment in another and find him there.
#56
Beginners' Technical Questions / Re: Gui phone
Fri 04/03/2022 08:21:27
yes then I understood .. thanks
#57
Beginners' Technical Questions / Re: Gui phone
Thu 03/03/2022 17:22:05
Quote from: Khris on Wed 02/03/2022 22:37:27

  // display typed number in a label?
  // lblDisplay.Text = keypadKeys;


lbl.Text = keypadKeys;
this works
#58
Beginners' Technical Questions / Re: Gui phone
Thu 03/03/2022 09:12:51
#60
Beginners' Technical Questions / Re: Gui phone
Thu 03/03/2022 09:04:47
ok, it seems clear but I get this error

GlobalScript.asc(335): Error (line 335): cannot assign initial value to global pointer
SMF spam blocked by CleanTalk