Burvey's Recent Forum Activity

  • As per the manual:

    "On text changed

    Triggered whenever the text in the field is modified, by typing, backspace/delete, cut/paste etc."

    You have to manually change it by adding input, like R0J0hound said. It's not intended to work if you are simply setting text via events.

    You can probably get around that by updating a variable along with setting the textbox text, and then play the sound when the variable changes.

  • It works! Thank you.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • That's a good idea. I'm going to try that. I had another idea using a second variable but I think your way might work better. I'll let you know how it turns out. Thank you.

  • On button clicked System set GV_Animal to TextBox.Text

    (when triggered) Audio Play GV_Animal not looping from sounds at volume 0db (tag "word").

    Audio On "word" ended -> (calls a function here)

    It works so long as the word is an audio file but if it's not then not then no audio plays so the function never runs. I tried adding an else but I either set it up incorrectly or it just didn't work properly.

    I'm open to any ideas.

  • Well, I thought about that but there are too many sound files to do it that way. Unless I can make some kind of file with all the words in it and then compare the variable to that list. Then if the word isn't on the list then the default would play. I'm just not sure how to go about doing something like that, or if it's even the best course of action.

  • Why not make each language have its own layout, then have the player choose the language they want at the beginning of the game.

  • No problem. Sometimes it's just easier to see then to read what to do.

  • You can't format one part of the text differently then another part of the text using the textbox object. You can use 2 different text boxes if you want. Or Rex makes a plugin called TagText that lets you format text pretty much however you want.

  • In one of my games I have a text box where the player can type in a word, like a type of animal. That word is set to a variable and then I play an audio clip based on the variable. So, for example if they type the word "cat" in the box, the audio file "cat" will play. Same with "dog", "chicken" or whatever. My question is, how do I play a default sound if the word they type into the box isn't an audio file that I have in the project. For example, if they were to add the word "house" or "asdf" or just leave the box blank, I can play something like incorrect.wav

  • You probably want do do something like if W and D are down simulate movement (choose either right, down or both if using 8 directions instead of 4), and set animation to back.

  • Check out the behavior called Pin

Burvey's avatar

Burvey

Member since 5 Oct, 2013

None one is following Burvey yet!

Trophy Case

  • 11-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

19/44
How to earn trophies