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

#1
Thanks so much Khris! I ended up doing something similar to what you suggested and it worked! This is what I did:

Code: ags
function repeatedly_execute_always()
{
  GUIVariable = GUIControl.GetAtScreenXY(mouse.x, mouse.y);
  if (GUIVariable == lblScissors){
    lblAction.Text = "fabric scissors";
  }
}
#2
Thank you! I'll try that right now. Do you think it'll be possible to do text instead of a graphic, or am I just going to have to make text png files?

Edit: So my current plan is storing the GUIcontrol result as a variable and when it is on top of a label, have the action bar label change to reflect the hotspot.
To do this, should I create a global variable? Of what type?
#3
After doing some additional research just now, I think I need to find a way to turn GUI labels/buttons into hotspots or objects?
#4
Thank you Khris! I guess the problem was I was using the open_gui function. I'm not using any module at the moment, I just made a GUI with the image as the background and a simple close button.

Would you have any advice on how to code the hotspot hovering buttons? Since it seems there is only Mouseover Image in the properties? I'm guessing I would have to code for hovering, right click to look, and left click to interact (which I know is already built in).
#5
Hi! I've created this image window that I'd like the player to be able to interact with.

In this specific case , I'd like:

1. this window to open up when the player clicks on the overturned basket.
2.hotspot description to show up over hotspot when cursor is hovering
3. dialogue shows over the window

I'm currently doing this as a gui, but the problem is gui only works in global script so it cannot be called when clicking room specific object. Do I do this as an overlay? But then how do I add hotspots onto the window? I've seen this done in multiple AGS games so I know it's possible, I'm just not sure how. Any help appreciated, thank you!

Link to image in case the inserted one doesn't work
SMF spam blocked by CleanTalk