san40511's Recent Forum Activity

  • 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:

san40511's avatar

san40511

Member since 27 Jan, 2023

Twitter
san40511 has 2 followers

Trophy Case

  • 2-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • x2
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

10/44
How to earn trophies