Quote from: Khris on Thu 11/01/2018 22:24:00Thanks, that solved the overlapping cursor!
Just move up the GUI if the cursor mode is eModeUseinv:
Right afterCode: ags int y = mouse.y + 10;
insertCode: ags if (mouse.Mode == eModeUseinv) y -= 20;
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: Khris on Thu 11/01/2018 22:24:00Thanks, that solved the overlapping cursor!
Just move up the GUI if the cursor mode is eModeUseinv:
Right afterCode: ags int y = mouse.y + 10;
insertCode: ags if (mouse.Mode == eModeUseinv) y -= 20;
int width = GetTextWidth(hotspottext.Text, hotspottext.Font) + 1; // replace X with small number (1,2,..) just for safety
hotspottext.Width = width;
gGui1.Width = width;
Quote from: Crimson Wizard on Thu 11/01/2018 10:54:26I'd like the text to move aside from the cursor, the main priority is to have the text be clearly readable.
Well, before making any fixes to the code, what would be the suitable solution from the design perspective? Do you want the text to be at same position, just above the item? Or moved aside?
QuoteI tried changing the last line of gGui1.Width = width; to GetTextWidth(lblHotspotName.Text, lblHotspotName.Font) = width; but then I got this message:
Oh, duh, I forgot the second parameter to GetTextWidth. Also I said "gGui1.Text", while it should have been label's text: GetTextWidth(lblHotspotName.Text, lblHotspotName.Font).
Quote from: Crimson Wizard on Thu 11/01/2018 00:03:37I tried putting the script below the previous script, but I just got this message when I tried.Quote from: Blondbraid on Wed 10/01/2018 21:10:44
the text sometimes appear far away from the cursor if the hotspot is near the right border, so I wonder, can I make the GUI text align in the middle when the cursor is near the right border?
I think you might just resize the GUI & Label to match the text's width. E.g., assuming your label is the only thing on GUI and positioned at 0,0, try thisCode: ags int width = GetTextWidth(gGui1.Text) + X; // replace X with small number (1,2,..) just for safety lblHotspotName.Width = width; gGui1.Width = width;
Quote from: Blondbraid on Wed 10/01/2018 21:10:44
There is also some overlap on the text and sprite when the cursor shifts to an inventory item, any advice how I can fix this?
Could you post screenshot, I am not sure I understand the situation correctly?
Quote from: Crimson Wizard on Wed 10/01/2018 20:31:16OK, I changed the typo and everything seems to be working, but the text sometimes appear far away from the cursor if the hotspot is near the right border, so I wonder, can I make the GUI text align in the middle when the cursor is near the right border?
There is a typo in my script:
if (y > 0)
y = 0;
Should be
if (y < 0)
y = 0;
Quote from: Matti on Wed 10/01/2018 20:13:11I tried disabling the line with gGui1.SetPosition, and it stopped the game from crashing when I moved the mouse towards the window border,
You don't need gGui1.SetPosition, it's replaced byCode: ags gGui1.X = x; gGui1.Y = y;
gGui1.SetPosition(x, y) should also work.
Quote from: Ali on Wed 10/01/2018 15:57:45I've played Syberia 3 for a bit, but it was after they installed a patch letting you control Kate Walker with the mouse. With that said, both control systems are slow and buggy, but by far the biggest problem with the game was the constant shifts in camera angle, which made it nigh impossible to get a good sense of where you were and which direction you were going. Syberia 3 gleefully took the 180-degree rule and fired it into orbit.
I agree there's a problem with Point & Click. I find that I have less and less patience for P&C clunkiness these days. But since the video above isn't a P&C, I thought it was a fair point.
I was really annoyed to see Kotaku running a Point & Click is dead article about Syberia 3. S3 looks absolutely terrible, but isn't a P&C game as far as I know. The writer complained that it wasn't more like Sexy Brutale which you actually can play as a point and click. The article might as well have been called "Bad games: bad, good games: good".
Quote from: Slasher on Mon 01/01/2018 06:24:00Couldn't resist making this Monkey Island reference again!
It's such a shame that no one else had the time to make a game for December....
Oh well, such is life and a win is a win...
Roll on Jan MAG
Quote from: AnasAbdin on Tue 26/12/2017 14:55:37Thanks, glad to hear!Quote from: Blondbraid on Tue 19/12/2017 17:29:14
I hope you don't get too heartbroken over the fate of it...
I'm prepared for worse after the goat incident in your previous game
Your new background is amazing I wouldn't care what software is used.Quote from: Blondbraid on Mon 25/12/2017 21:52:06
Anyway, since it's Christmas, I'd thought I'd share this heartwarming story about a Christmas during WW2 I just read!
Thanks for sharing
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.259 seconds with 15 queries.