fongka2's Forum Posts

  • Regex aka Regular Expressions. Its a big topic. So I'll just give you a small example of the power of what it can do. Google should help if you want to know more

    You want to extract the website names from these website addresses, but you don't know what to expect but you know that there is a pattern of "www." and ".com"

    http://www.google.com http://www.yahoo.com http://www.scirra.com

    So you can use regex!

    with a pattern like "@www\.(.*)\.com@"

    @ is the delimiter, it tells you where the pattern starts and ends (you can add flags at the end for matching new lines, ignore case sensitivity etc), but this may only apply to php

    \. is escaping full stop

    . is match any character

    * is match 0 or more any characters

    You can test and learn with this tool: http://regexpal.com/

    In the top box, enter this:

    www\.(.*)\.com[/code:2qdnas4l]
    In the second box, enter this:
    [code:2qdnas4l]
    http://www.google.com
    http://www.yahoo.com
    http://www.scirra.com
    [/code:2qdnas4l]
    

    but...can you please make a screen shot for me?

    i know how to use Regex now but not in C2

    this not working

    RegexMatchCount("http://www.google.com http://www.yahoo.com http://www.scirra.com","www\.(.*)\.com","")
     [/code:2qdnas4l]
     <img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes">  <img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes">  <img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes">
    Thankyou sososooss much again
  • Regex aka Regular Expressions. Its a big topic. So I'll just give you a small example of the power of what it can do. Google should help if you want to know more

    You want to extract the website names from these website addresses, but you don't know what to expect but you know that there is a pattern of "www." and ".com"

    http://www.google.com http://www.yahoo.com http://www.scirra.com

    So you can use regex!

    with a pattern like "@www\.(.*)\.com@"

    @ is the delimiter, it tells you where the pattern starts and ends (you can add flags at the end for matching new lines, ignore case sensitivity etc), but this may only apply to php

    \. is escaping full stop

    . is match any character

    * is match 0 or more any characters

    You can test and learn with this tool: http://regexpal.com/

    In the top box, enter this:

    www\.(.*)\.com[/code:2x5tn8ln]
    In the second box, enter this:
    [code:2x5tn8ln]
    http://www.google.com
    http://www.yahoo.com
    http://www.scirra.com
    [/code:2x5tn8ln]
    

    seems very complex but powerful

    thankyou for your demo!!!!!!

  • RegexMatchAt(String, Regex, Flags, Index)
    Process the regular expression Regex on String with Flags, and in the list of results, return the entry at Index.
    
    RegexMatchCount(String, Regex, Flags)
    Process the regular expression Regex on String with Flags, and return the number of entries in the list of results.
    
    RegexReplace(String, Regex, Flags, Replace)
    In String substitute matches for the regular expression Regex (with Flags) with the string Replace. The replacement string can contain the following special characters: $$ (inserts a $), $& (inserts the matched substring), $` (inserts the portion of the string that precedes the matched substring), or $' (inserts the portion of the string that follows the matched substring).
    
    RegexSearch(String, Regex, Flags)
    Return the index of the first character in String where a match for Regex with Flags could be found.[/code:1nbjwm8u]
    
    Seems useful ! But i don't know what is this...
    Please someone post a demo for tell me what is that or how to use?  
    Thankyou!!
  • fongka2

    Now, I understand what you said.

    I'll add that to to-do list.

    Thanks

    Sorry for my english

  • fongka2

    I can't understand what you want still.

    Explain in details.

    TheWyrm

    I must try to make my games to support my living for the time being.

    Then I'll think about completion and contributing the google play native plugin.

    I wish you understand me.

    Thanks

    Go IndelXDK

    PORJECTS

    your xdk project

    CORDOVA 3.X HYBRID MOBILE APP SETTINGS

    PLUGINS AND PERMISSIONS

    Core Cordova Plugins

    ..You will see there have a "In App Broser Plugin"

    I will need to open some website in my App

    so.. will you please add this plugin for C2?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • fongka2

    What do you mean?

    I don't understand what you want.

    http://cordova.apache.org/docs/en/3.3.0 ... er.md.html

  • Will you add a full function cordova Inapp browser?

  • Yeah, as of r181 Construct 2 will blame the correct plugin/behavior in the error message.

    Thx my god

  • I have a long time not touching layout

    [attachment=1:24zwfked][/attachment:24zwfked]

    [attachment=0:24zwfked][/attachment:24zwfked]

  • We should keep donation to who like cranberrygame(Sang Kwon) Life saver

    [attachment=0:obepqm81][/attachment:obepqm81]

  • Well, there is an update log every time C2 updates, but you really should have just copied it all into new plugins and did your tinkering there. I'm afraid this is far beyond anyone's ability to help you.

    I know how i stupid

    but i think tell whihc plugin dead is easy for scirra,right?

    and also...who will check all of update log XDDD

  • Do you really need to load 300+ frames at once? If you have images that large it would't be so good idea.

    I know it is a bit of a hack but since C2 won't allow creating new frames at runtime that is the method I would use for now.

    Based on your video you probably don't need quite as complicated system. I made that system mostly for keeping track of level textures and such where they are loaded externally and there is a lot of same images.

    I'm making a Skout like app

    so i need create image runtime

  • > I would make some small empty animation frames and load the pictures to different frames.

    >

    > Here is similar system I made using array to keep track of images.

    >

    >

    I have about 3XX image need donwload from server

    What you mean is i need make about 3XX frame for load image?

    omg....Your way is working...

    but i hate doing this

  • I would make some small empty animation frames and load the pictures to different frames.

    Here is similar system I made using array to keep track of images.

    I have about 3XX image need donwload from server

    What you mean is i need make about 3XX frame for load image?

  • after performing action on that sprite ( on tocuhed object for example) add another second condition ( pick instanc's unique id UID ) and add the actions , it will only affect the picked instance.

    No..

    You can try it by yourself

    Are you sure you have seen my YouTube?

    I can change angle