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

#1
Quote from: Crimson Wizard on Sun 03/06/2018 13:07:23
Quote from: Narehop on Sun 03/06/2018 12:28:14
if I skip this effect my lipsync made whit gibberish doesn't have sense... so I will not use any type of sound to speech characters :(

To clarify, you need typewriter to follow lipsync? Because right now it only types in predefined speed.

Normally all the examples of gibberish I have seen are heard at the same time that you are writing the text, this way you get it look like they're actually talking.
#3
Quote from: Snarky on Sun 03/06/2018 07:14:23
The solution was already proposed, it just needs somebody to do it. I cannot commit to it right now (and frankly, even if I had the time I wouldn't want to: the weather is too nice to spend time inside coding :cool: ).

I suggest you skip this effect. As a player I always found it rather annoying when used for all text, anyway.

if I skip this effect my lipsync made whit gibberish doesn't have sense... so I will not use any type of sound to speech characters :(
#4
Quote from: Snarky on Sun 03/06/2018 07:21:38
Quote from: Narehop on Sat 02/06/2018 17:28:58
Thank you for your reply Snarky. I was using SpeechBubble.InvisibleFont = eFontinvisibleFont but actually I had to disable because I saw that my characters doesn't do speech animation. They allways stay quiet and text continues.


Well that's no good. I'll take a look at it. Could you post what SpeechBubble settings you're using and the lines where you call it that aren't animating properly?

Code: ags

 // Set up the border
  SpeechBubble.Format.BorderRenderMode = eRenderSprite; // Use sprites to render the border
  SpeechBubble.Format.BorderSpriteTopLeft = 1187;  // Sprite index...
  SpeechBubble.Format.BorderSpriteTopRight = 1188;
  SpeechBubble.Format.BorderSpriteBottomRight = 1189;
  SpeechBubble.Format.BorderSpriteBottomLeft = 1190;
  SpeechBubble.Format.BorderSpriteTop = 1194;
  SpeechBubble.Format.BorderSpriteBottom = 1191;
  SpeechBubble.Format.BorderSpriteLeft = 1192;
  SpeechBubble.Format.BorderSpriteRight = 1193;  
 
  // Set up the tail
  SpeechBubble.Format.TailRenderMode = eRenderSprite;  // Use a sprite to render the tail
  SpeechBubble.Format.TailSprite = 1186;
  SpeechBubble.Format.TailTipOffset = 30;  // This is what x-coordinate in the tail sprite the tip is (the pixel that should be over the character's head)
  SpeechBubble.Format.AllowTailSlide = false;  // The tail will always be centered in the bubble
  
  // We set negative padding so the text actually extends into the edge sprites (since they are quite big)
  SpeechBubble.Format.PaddingTop = -10;
  SpeechBubble.Format.PaddingBottom = 5;
  SpeechBubble.Format.PaddingLeft = -5;
  SpeechBubble.Format.PaddingRight = -5;
 
  // General formatting
  SpeechBubble.Format.BackgroundColor = Game.GetColorFromRGB(0, 0, 0);  // Black background
  SpeechBubble.Format.BackgroundTransparency = 40;
  SpeechBubble.Format.TextOutlineWidth = 1;
  SpeechBubble.InvisibleFont = eFontinvisibleFont;


And allways stop animation with any character.
#5
nobody? :(:(
#6
Quote from: Snarky on Sat 02/06/2018 06:38:42
If you are using voiced speech or have set an invisible font, SpeechBubble calls Character.Say() internally to handle the speech animation and timing of the display. As I recall, you set an invisible font earlier to workaround a cutscene bug. So Game.IgnoreUserInputAfterTextTimeoutMs should work without any changes to the module code.

Edit: However, this setting doesn't actually do what you're interested in: it only ignores input after the last line timed out, not if you dismissed it. If you hold down a button, AGS will still speed through the dialog at high speed.

This behavior is by design, but I have also had the impression that the speed has increased lately (or maybe I'm just getting old...). It would be good to be able to control how fast it happens (I would guess it's at the key-repeat speed for holding down a keyboard key, but does that also apply to mouse-button presses?), and also ensure that a slightly longer click/button press doesn't accidentally skip two lines.

I've also split this continuing discussion into its own thread since the "(SOLVED)" part of the title kept annoying me. Arguably it should be merged with the module thread, though.

Thank you for your reply Snarky. I was using SpeechBubble.InvisibleFont = eFontinvisibleFont but actually I had to disable because I saw that my characters doesn't do speech animation. They allways stay quiet and text continues.



btw I tried to fix the speech speed using this:
Quote from: Ghost on Mon 02/03/2015 01:02:39
You can set how speech (and dialog lines) are skipped in your game's General Settings -> Dialog -> Speed Skipped by...

You can also change the text speed by altering Game.TextReadingSpeed, and finally there is Game.MinimumTextDisplayTimeMs to make sure that even very short words stay on screen for a fixed amount of time. The manual has info all these, but these settings make stuff very easy to read and follow.
Game.TextReadingSpeed = 7;
Game.MinimumTextDisplayTimeMs = 2000;

#7
Quote from: Crimson Wizard on Fri 01/06/2018 22:47:34
From the looks of the module code, this property is not used in there. What I meant, it could be supported.

Doesn't works... i tried to do but nothing happen.
#8
Quote from: Crimson Wizard on Fri 01/06/2018 22:30:07
Quote from: Narehop on Fri 01/06/2018 22:22:10
Snarky i detected a little issue in your module. When my characters are talking if i press a long time a key for pass to the next bubble, it goes really so fast. How i can to resolve this? :(

There is Game.IgnoreUserInputAfterTextTimeoutMs property for builtin speech, I guess it may be made used in the module too.

thank you, i'll going to try it :)
#9
Snarky i detected a little issue in your module. When my characters are talking if i press a long time a key for pass to the next bubble, it goes really so fast. How i can to resolve this? :(
#10
So what solution do you propose?
#11
Quote from: Snarky on Sun 27/05/2018 22:14:28
It's not going to be easy.

- SpeechBubble needs the full spoken text in order to determine bubble formatting and timing
- SpeechBubble always renders this text immediately onto the bubble
- If you changed the text content, SpeechBubble would have to redraw the entire bubble, and this might affect aspects of the layout
- With typewriter text, the timing should probably also be calculated differently

Enabling dynamic text change would require significant changes to the module logic. Some of those changes might be useful improvements, but it also risks adding complexity to an already complex module. I'm starting to think it would be easier to just write a custom system specifically for this game.

Sorry to be a problem hahaha, I'm giving too much work to Snarky, I'm sure you have nightmares with me :~(:~(:~(
#12
yep I hope Snarky can read this post and try to guide us about it. :D
#13
Quote from: Crimson Wizard on Sun 27/05/2018 21:44:00
My TypedText module can work with any built-in GUI or Overlay with text property, and any kind of DrawingSurface.

So the question is how SpeechBubble works and whether it may
- provide a surface it draws bubble on for external use;
- tell when it starts and stops displaying bubble.

If it can do these things (or at least second thing), then these two modules could be bound together.

Here you can download the last version that Snarky made if you want to test it. I would do it myself if it were not because surely die in the attempt because I am not too well programming...
SpeechBubble v0.8.10
#14
I'm using the Speech Bubble module from Snarky and I would like to add a typewrite style to the text. Does anyone know if there is a compatible module to do so? I would also like to add a sound every time a Speech Bubble appears, something like this:

(AT 00:43)

I have been seeing in the forum several modules that do the same but I do not think that anyone has compatibility with the Speech Bubble by Snarky:(
#15
UPDATE 05/06/2018

I mainly want to thanks @Snarky because he did me a favor and modified his module "SpeechBubble" so that it could accept a GUI and be able to give a little more personality to Train to nowhere.


#16
Monty Drake and me made a system of quests for Train to nowhere with extra help from the Tween Module. If you give me some time I can try to compile the code and share it.

You can:
- Add new Quests in anyone order.
- Delete quests.
- Complete quests.
- all quests have a different color if you want.
- open / close menu quests with any key when you want.

You can't:
- Create secondary quests into primary quests
- add "icon/label" called "NEW" for new quests.
- Expand info on click quest.


#17
Quote from: Snarky on Sun 06/05/2018 11:21:06
Yes, I see it. The background fill must overlap the edge by one pixel (it's one pixel too wide and too tall), which is only visible when they're semi-transparent, because you're drawing twice, adding to the opacity. These off-by-one errors are really annoying, and a lot of the work on this module has been fixing them.

Edit: OK, so that was a really easy fix: SpeechBubble v0.8.10

I really dig the visual style you've got going here, by the way. The font fits really well.

Thank you one more time Snarky! Now it works FINE AT 100%! Thank you for your comment. I hope in a month I can have a full demo to download for all people ^^
#18
Quote from: Snarky on Sun 06/05/2018 06:20:42
So it's all working now? Cool!

yes, but i have a little problem, but I don't know why happens this:




if you can see, I've a line on left side and bottom side. But in top and left doesn't exist :S

#19
Quote from: Snarky on Sat 05/05/2018 18:27:04
Quote from: Narehop on Sat 05/05/2018 18:12:39
How can i to use the module on dialogs? Because in AGS the dialogs only use "cEgo: bla bla bla bla" can i use speechbubble?

You can write normal AGS commands in a dialog, but you have to put a space (or several spaces) at the beginning of the line. So instead of:

Code: ags
cEgo: bla bla bla bla


You put:

Code: ags
 cEgo.SayBubble("bla bla bla bla");


(Note the space!)

QuoteI have a last question about your module. When i'm using a cutscene the game freeze around 5-6 seconds and I've to do double-click to solve. Before to use your module this not happens.

Ah, hmm... yes, I can see how that could happen. I think it's due to the custom blocking code. It might be tricky to solve properly, but as a workaround, try setting an invisible font with SpeechBubble.InvisibleFont. This should bypass the custom blocking. You can download an invisible font here: http://www.angelfire.com/pr/pgpf/if.html

man, you're the best! If you have a job, tell your boss to increase your salary.

I'll put your name on the credits of Train to Nowhere. Really you saved my project with this ^^
http://www.adventuregamestudio.co.uk/forums/index.php?topic=56019.0
#20
Quote from: Snarky on Sat 05/05/2018 17:55:11
The tail is displayed instead of the border, not on top of it (or under it, as in your mockup). So if your tail sprite is meant to also show the border, you have to actually include the border in the sprite (they don't have to be the same height, though; if not, they'll be top-aligned). Here's the sprite I used in testing:

[imgzoom]https://i.imgur.com/NNrFqKM.png[/imgzoom]

Quote from: Narehop on Sat 05/05/2018 17:28:40(btw, can we make the background with some alpha transparency?)

Yes, you can set the background transparency with SpeechBubble.Format.BackgroundTransparency and the border transparency with SpeechBubble.Format.BorderTransparency. If you just want part of the border to be transparent (for example the black part, not the gold part), that needs to be part of the sprites you use.

Also, because it bugs me a little: the top border edge of your text window is not precisely aligned with the corners, and the outside gold rim is a little bit wider/heavier than the corners, creating a noticeable seam. You might want to fix that.

SO NICE! IT WORKS VERY FINE! :D

How can i to use the module on dialogs? Because in AGS the dialogs only use "cEgo: bla bla bla bla" can i use speechbubble?

I have a last question about your module. When i'm using a cutscene the game freeze around 5-6 seconds and I've to do double-click to solve. Before to use your module this not happens.
SMF spam blocked by CleanTalk