Misantrop's Recent Forum Activity

  • Their is something weird happening with this code. If you remove some of the Conditions under the comment "Replace characters" and "End convertion" the application will change the Variable "Convertion" to "Done", as it should do. But when i keep them all it doesn't work. I'm sure it's just something Ive done, but please have a look.

    Ive only been using MMF2-DEV before, so I'm pretty new to Construct.

    Also, why can you only use three parameters with "find"? It would be better if you could use as many as you wanted too.

    The Code:

    Source

    http://www.2shared.com/file/4974349/da1cc242/MyApp.html

    //Start convertion
    
    ButtonStartConvertion: 14 On ButtonStartConvertion clicked
    System: 0 global('Convertion') Different to "On"
    

    SystemSet global variable 'Convertion' to "On"

    //Replace characters

    System: 0 global('Convertion') Equal to "On"

    EditBoxSet text to replace(EditBox 0 , "a", "@")

    System: 0 global('Convertion') Equal to "On"

    EditBoxSet text to replace(EditBox 0 , "b", "#")

    System: 0 global('Convertion') Equal to "On"

    EditBoxSet text to replace(EditBox 0 , "c", "�")

    System: 0 global('Convertion') Equal to "On"

    EditBoxSet text to replace(EditBox 0 , "d", "%")

    System: 0 global('Convertion') Equal to "On"

    EditBoxSet text to replace(EditBox 0 , "e", "&")

    System: 0 global('Convertion') Equal to "On"

    EditBoxSet text to replace(EditBox 0 , "f", "/")

    System: 0 global('Convertion') Equal to "On"

    EditBoxSet text to replace(EditBox 0 , "g", "!")

    System: 0 global('Convertion') Equal to "On"

    EditBoxSet text to replace(EditBox 0 , "h", "?")

    //End convertion

    System: 0 EditBox 0 .Text Different to find(EditBox 1 , "a","b")

    System: 0 EditBox 0 .Text Different to find(EditBox 1 , "c","d")

    System: 0 EditBox 0 .Text Different to find(EditBox 1 , "e","f")

    System: 0 find(EditBox 0 , "e","f") Different to find(EditBox 1 , "g","h")

    SystemSet global variable 'Convertion' to "Done"[/code:1e6jpfvb]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Misantrop's avatar

Misantrop

Member since 9 Oct, 2008

None one is following Misantrop yet!

Trophy Case

  • 16-Year Club

Progress

16/44
How to earn trophies