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

#1241
Quote from: Khris on Thu 11/01/2018 22:24:00
Just move up the GUI if the cursor mode is eModeUseinv:
Right after
Code: ags
int y = mouse.y + 10;

insert
Code: ags
if (mouse.Mode == eModeUseinv) y -= 20;

Thanks, that solved the overlapping cursor!
#1242
Alright, I changed the code:
Code: ags
int width = GetTextWidth(hotspottext.Text, hotspottext.Font) + 1; // replace X with small number (1,2,..) just for safety
hotspottext.Width = width;
gGui1.Width = width;

The game doesn't crash, but I see no visual difference from before either. What have I missed?
#1243
Quote from: Crimson Wizard on Thu 11/01/2018 10:54:26
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?
I'd like the text to move aside from the cursor, the main priority is to have the text be clearly readable.
Quote
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).
I tried changing the last line of gGui1.Width = width; to GetTextWidth(lblHotspotName.Text, lblHotspotName.Font) = width; but then I got this message:
GlobalScript.asc(28): Error (line 28): undefined symbol 'lblHotspotName'
#1244
Quote from: Crimson Wizard on Thu 11/01/2018 00:03:37
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 this
Code: 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?
I tried putting the script below the previous script, but I just got this message when I tried.
GlobalScript.asc(28): Error (line 28): Not enough parameters in call to function

As for the cursor overlapping the text, here is a screenshot of the problem:
#1245
Quote from: Crimson Wizard on Wed 10/01/2018 20:31:16
There is a typo in my script:

if (y > 0)
   y = 0;

Should be

if (y < 0)
   y = 0;
OK, 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 also some overlap on the text and sprite when the cursor shifts to an inventory item, any advice how I can fix this?
#1246
Quote from: Matti on Wed 10/01/2018 20:13:11
You don't need gGui1.SetPosition, it's replaced by
Code: ags
gGui1.X = x;
gGui1.Y = y;


gGui1.SetPosition(x, y) should also work.
I tried disabling the line with gGui1.SetPosition, and it stopped the game from crashing when I moved the mouse towards the window border,
but then the hotspot description appeared at the top of the window instead of next to the mouse.
#1247
Thank you, but I'm afraid that I don't understand how I should use the code you provided in the game script.
I tried putting it under gGui1.SetPosition(mouse.x + 10, mouse.y + 10); in the Global Script, but that didn't solve the problem.
#1248
Hi, I've been experimenting with trying to make text for hotspots appear near the mouse when players move it over the hotspots, the script I use is:

gGui1.SetPosition(mouse.x + 10, mouse.y + 10);

under repeatedly execute in the global script. It works and looks fine until I move the mouse too close to the edge of the window, because then the game crashes and I get a message saying that the GUI.Y co-ordinates are out of range, how can I prevent this?
#1249
Casual mobile games in a nutshell. :P
#1250
I'd definitively say that the biggest problem with the video was that the protagonist walked so slowly, and it wasn't a particularly good walking animation either. If a game has large level areas to cover, the player character should either be able to run or have a fast default walking pace, because just sitting and waiting for them to reach their destination would bore most players. Plus, as MJL pointed out, the lack of any real intro made the game feel really cheap and poorly made.

Quote from: Ali on Wed 10/01/2018 15:57:45
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".
I'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.
#1251
1. Funkpanzzer
2. Klatuu
3. Tabata
#1252
General Discussion / Re: Trumpmageddon
Mon 08/01/2018 17:42:02
I recently read this article about Michael Wolff's Fire and Fury: Inside the Trump White House, and while I highly doubt its authenticity,
it's by far the best thing I've ever read about Trump: https://www.themarysue.com/trump-and-the-gorillas/ (laugh)
#1253
Those trees look absolutely gorgeous!
#1254
Congratulations to the winners!
#1255
Sounds absolutely fascinating, I'll try it when I find the time!
EDIT: I've just listened to the podcasts, and they're pretty great, keep up the good work! (nod)
#1256
Quote from: Slasher on Mon 01/01/2018 06:24:00
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... (laugh)

Roll on Jan MAG (nod)
Couldn't resist making this Monkey Island reference again! (laugh)
#1257
FOR YOUR CONSIDERATION

Sniper and Spotter serving the Motherland
A darkly humorous adventure set in World War 2.

The great patriotic war is raging and Olga, a sniper loyal to the motherland, and Ivan, her trusted spotter, have received an order to use the scorched earth tactic on a small village in Soviet Russia before it falls into the hands of the axis. Their mission will be to use any means at their disposal in order to destroy any usable resources in the village before the enemy gets a chance to do so.

Download:
AGS Database - http://www.adventuregamestudio.co.uk/site/games/game/2150/
GameJolt - https://gamejolt.com/games/sniper-and-spotter-serving-the-motherland/239699

POSSIBLE AWARDS
Best Game Created with AGS
Best Freeware Game Created with AGS
Best Short Game
Best Gameplay
Best Puzzles
Best Writing
Best Character
Best Animation
Best Background Art
Best Character Art

#1258
Quote from: AnasAbdin on Tue 26/12/2017 14:55:37
Quote from: Blondbraid on Tue 19/12/2017 17:29:14
I hope you don't get too heartbroken over the fate of it... (roll)

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! ;-D

Thanks for sharing :)
Thanks, glad to hear! ;-D

So, there'r a new year coming, and I've worked on a new animation:

I wish everyone a happy new year! But remember that loud and sudden noises can be stressful to people with ptsd (I read quite a bit about it doing research for this game), so try to go easy with the fireworks, and have a nice new years eve! :)
#1259
I guess my goals are similar to Danvzare's, I'm trying to finish my current AGS project and hopefully make it in a slightly bigger scope and better animated than my last game.
Also, finish my education with good grades.
#1260
I was really reminded of Neofeud when reading this article: https://www.themarysue.com/gym-bro-robot-kengoro/ :)
The robot even looks like some of the robots in Neofeud!
SMF spam blocked by CleanTalk