I'd also like to mention, the dialogue is being pulled from a JSON file, not a string/global variable.. If this helps at all--
Did you see the project I posted here? You can use the typewriter there, just do all the "replace" actions first.
This doesn't seem to work.
Set variable1 to replace(...) Typewriter text variable1 I'm just thinking that typewriter might get confused by the replace stuff, so do the replace before.
Set variable1 to replace(...)
Typewriter text variable1
I'm just thinking that typewriter might get confused by the replace stuff, so do the replace before.
I'm confused on this, would it be possible for you to send a example project?
Try to put it in a variable first.
Elaborate, please.
Is it possible to do it with the typewriter text? It always breaks whenever I try to do typewriter with it.
This will be really difficult to make a system which will parse object names and instance variables in JSON strings. What I usually do is I add simple tags, for example: "Hey, (player_name)! If you bring me the magic scroll I will give you (coins) gold coins!" And then before showing this line on the screen I replace tags with real values. > Set text to replace(text, "(playerName)", Player.Name) Set text to replace(text, "(coins)", NPC.questPrize)
This will be really difficult to make a system which will parse object names and instance variables in JSON strings. What I usually do is I add simple tags, for example: "Hey, (player_name)! If you bring me the magic scroll I will give you (coins) gold coins!"
And then before showing this line on the screen I replace tags with real values.
> Set text to replace(text, "(playerName)", Player.Name) Set text to replace(text, "(coins)", NPC.questPrize)
Is there something I'm doing wrong here?
(Also, I fixed the directions, I know they were broken.) I still need to figure out how to make it detect inputs.
It doesn't seem to detect the input? Did I do something wrong?
Develop games in your browser. Powerful, performant & highly capable.
I want a dialogue sound to play whilst the typewriter types. Is there a better way to do this?
It seems to have solved the problem, if I have any further issues I'll notify you! Thank you!
As you can see in the video, whenever I exit and re-enter a dialogue with the question prompt, the answers will slowly move off of the prompt. If someone could go through my programming and tell me how to fix this, I'd be very thankful.
Project:
drive.google.com/file/d/1bT-4FzU1Smqs9IttNi5z6IEDuHeHLzWC/view
I'll try that thanks!
Member since 7 Mar, 2021