somonflex's Forum Posts

  • 14 posts
  • Noncentz705 > Could you use words in your sentences ?

    A simple

    var myvar-toto = "dada";[/code:1vdnw7di] throw an error [code:1vdnw7di]Uncaught SyntaxError: Unexpected token -[/code:1vdnw7di]
  • Tylermon > I don't care about SEO, my games are wrapped in Webview for Android and iOS. But thanks.

    Noncentz705 > ???

  • One month later, UP !

  • Hello.

    When I export a project, C2 generate images with a name like myimage-sheet0.png. For various reasons, I'm using this name in my javascript like a var name. But the dash ( - ) in the name is not useable for a var name in javascript, so I must replace all dashes with underscores ( _ ), and, when my projects count 100+ images, it's veryyyy long.

    So, is it possible to generate image with underscore instead of dash in the name ? ( = myimage_sheet0.png)

    Or is it possible to have an option in a menu and let the choice to the user ?

    Or can I modify it in a C2 property file ?

    Thanks,

    C2 is awesome!

  • Problem Description

    If you have a text object with the hotspot set to center, and if you create a new instance of this text object, this instance will have the hotspot set to center but in reality, the hotspot will be in top left.

    Steps to Reproduce Bug

    • Insert a new text object
    • Set the hotspot to center
    • Ctrl + left click in the text in Object View and drop in the scene to create a new instance

    Observed Result

    The new instance have the hotspot set to center but in reality, it's top-left.

    This bug occure only if you create the instance from the Object View, if you clone the object directly from the scene, the hotspot is ok.

    Expected Result

    The hotspot of the new instance must be the same as the original object, in this case: center!

    Operating System and Service Pack

    Windows 8.1

    Construct 2 Version ID

    Release 168 64-bit

  • Thank you for your prompt response.

  • Hello,

    My company makes mobile apps including simple HTML games. Our apps are distributed under our clients brand (not our's). Does the Construct Business licence allow us to distribute our games that way (i.e under third party brand)? Are there any restriictions?

  • Thx Knifegrinder, I'll look this.

    If you find a solution, you can share it!

  • Knifegrinder

    I'm making an online browser game. I mustn't use an exporter.

  • Hi,

    I try to access to global variable with my custom javascript

    Add event > System > On start of layout > Browser > Execute javascript > alert(this.runtime.all_global_vars);

    In my Chrome Desktop, it works and return an array with all vars, but when I try it on an Android device or an iOs device, the game crash.

    Any idea ? <img src="smileys/smiley5.gif" border="0" align="middle" />

  • <img src="smileys/smiley22.gif" border="0" align="middle" /> It's not at all an insult, and if you take it like that, sorry. You are insinuating that I don't search in the manual, this is false, I'm just telling you.

  • Dude, i'm searching in the manual since one day...

    I don't want know if the display is portrait or landscape, i want know if the display is portrait, reverse portrait, landscape or reverse landscape

    I can't post a link so take that link and remove the * before .jpg

    image.noelshack.com/fichiers/2013/51/1387551392-browserorientation*.jpg

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I want to know if it's possible to detect browser orientation.

  • Hi,

    I'm making an accelerometer HTML5 game with Construct 2.

    I can easily get Touch.Beta and Touch.gamma values, but i can't lock screen orientation so I can use these values onyl when the orientation is equal to 0.

    Is it possible to detect device orientation (0, 90, 180, -90) like in javascript with window.orientation ? <img src="smileys/smiley5.gif" border="0" align="middle" />

    I need the browser orientation.

    <img src="http://image.noelshack.com/fichiers/2013/51/1387551392-browserorientation.jpg" border="0" />

  • 14 posts