san40511's Forum Posts

  • Just provide another idea.

    You can use a delimiter to separate it.

    like: Layout-1, Layout-20

    Then use tokenat expression to get out the number.

    > tokenat(LayoutName, 1, "-")
    

    For example:

    > tokenat("Layout-5", 1, "-") // 5
    tokenat("Layout 5", 1, " ") // you can also use spaces as delimiters.
    

    Thank you. I will try

  • > 	RegexMatchAt(LayoutName,"\d+","g",0)
    

    That gives you the first number in the LayoutName.

    Thanks, I will try

  • Likely int() uses parseInt() under the hood so it would still return 0. The string would need to start with a number for int() to work.

    If your layout makes have the pattern of a letter then a number then you could do int(mid(layoutname,1,10)) or something.

    Yeah, you are right. I forgot that it parse correct only if first symbol is number. Looks like i need something like regex or I will try your solution. Thanks

    UPD: It works perfectly. Thanks

  • Hey guys i'm trying to parse layout name as number and can't find the correct expression for this. When I do int(LayoutName) it always returns 0 thought my layout name is "L11". I'm thinking to use the js junction parseInt instead but i don't really like this solution cause this exact project I do with blocks. Maybe you how know to do that without coding?

  • found the formula. Maybe it will be useful for somebody objectPositoon(x or Y) + (speed*deltaTime)

  • Hey guys. In my game i have road and obstacles. road it is tiled bg and obstacles it is sprite with bullet behaviour. I want to sync the bullet and tiled bg speed, but i don't know the formula. Maybe somebody know how to calculate it in right way?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • > haptic-touch plugin

    I can't find this one. If you mean "cordova-plugin-vibration", then it could be added by Construct plugins like Touch or Browser.

    Looks like the issue fixed. I reloaded everything and plugin is absent now. Thank you for your help

  • Which addon and which cordova plugin is that?

    it's Chadori master collection - mobile vibrate addon, haptic-touch plugin

  • > I used an external addon in my app then i decided to delete it but the plugin that provided by this addon is still in the project.

    This should not happen. Perhaps you didn't remove the addon completely - right-click your project name and check "View used addons" under Tools.

    Another possibility is that the same Cordova plugin is required by some other addon or even by an official C3 plugin. In this case removing it with CLI may break the game.

    It is very strange but i double checked that addon is fully removed. I even removed it from the general addon list but anyway i see the plugin in the build.

  • I used an external addon in my app then i decided to delete it but the plugin that provided by this addon is still in the project. How can i remove it? Where to find the config.xml?

  • could fix that by removing the bundle tick in the export menu. Maybe will be useful for somebody

  • Hey guys maybe somebody knows how to fix that? I'm trying to build the game for the EGS but the x64 build is not working. x86 works correct x64 not. when I'm running the game it says that the file not found index.html

    Tagged:

  • Looks amazing. Waiting for the commercial license. I don't see any sense for me to use it in my project if i can't publish them. How is your camera plugin doing?

  • the game lore:

    Subscribe to Construct videos now

    Your game visual style is amazing, the gameplay still feels boring. Please read few game design books (at least robert zubek or jesse shell). it will help you a lot to improve the gameplay aspect

  • Looks like not. I asked author of the Construct Master Collection about his plans to develop it and he said that he is already working on it but unfortunately you have to pay another 99 or 199 dollars to get it.

    I don't know how this plugin was abandoned cause ios it is the main mobile platform in the world and every cross platform engine first of all have to support main functions of the all main platform especially if the engine not free even if not a lot of people use it. But ok, waiting realisation from the 3rd party developers or you can use cordova plugin for this but in this case you would need to create your own facade for this functionality on vanilla JS