anyone knows why is this bug hapening.?

0 favourites
  • 8 posts
From the Asset Store
Match same tiles with each other as fast as you can and earn more score during a limited time!
  • I'm having a bug with the translation system of my game even though i had fixed that bug long ago i saw a dialog line in my game that instead of showing me both the english and spanish translation of it, it show's me a Zero.

    Translation system:

    The Key's that are being affected by the bug:

    This is the bug:

    the dialog is showing this:

    Instead of this:

    If you guys know why is this bug happening, comment Down below.

  • Keys in a dictionary are case-specific; in your images you have the key as "green" in the list of long list of actions and then "Green" in the Add Key action.

    Not related, but it looks like you have event 9 running every frame - you might want to stick that in a trigger so it only fires once.

    Edit: is event 9 meant to be part of the above function? If so you need to make it a sub-event of it.

    Also you don't need the trigger once on event 3 - all those add key actions can be directly under the AJAX completed event in event 2.

  • "en.green" is the key for the english version of the dialog, and "green" is the spanish key of dialog. and the images you saw where from the indie game iv'e been developing that's titled blocky(if you saw the sneek peeks). Maybe this info can help you, Thank's BTW.(i need to fix this, ASAP)

  • what event do you recomend me to replace "trigger-once" with?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The problem is that you have: -Set text to Dictionary.Get("green") //which is using a lowercase "g"//

    But then in your "Add Key" you've got: -Key="Green", Value="Vamos Blocky..." //which is using an uppercase "G"//

    These need to match, so you need to go through and make sure all key names and the strings you pass through Dictionary.Get are identical in every way

  • what event do you recomend me to replace "trigger-once" with?

    You don't need to replace it with anything. You can remove the "Trigger once while true" entirely, as the AJAX.OnLoad action already triggers once.

    Anything that has the green arrow symbol will only fire once when an event has occurred to trigger it

  • You can also add a variable prefix and then you won't need separate events for each language.

    If English set prefix to "en."

    If French set prefix to "fr."

    If Spanish leave it empty ""

    Then set texts to Dictionary.Get(prefix & "keyname")

    And don't update texts on every tick! This is really bad for the performance. Update them in changelanguage function.

  • Already solved the key problem, Thanks again.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)