Nimtrix's Forum Posts

  • You do not have permission to view this post

  • fassFlash:

    Turret didn't exist a year ago when these posts were posted. <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you're using the distance expression:

    distance(Turret.X, Turret.Y, Target.X, Target.Y) > YourRange

    If your distance is greater than the variable YourRange, perform actions.

  • Kyatric, jbrown2177:

    reddit is free, with an option to buy reddit gold. Gold just adds a bunch of extra features you can do without.

  • You may have to enable it before it shows up. Click "view" in the menu and check "Z order bar".

  • Something like this?

    resetRotation.capx (r123.2)

  • I would recommend fixing the problem at it's core instead of trying to scale inside C2. By that I mean making the sprites the right size before you import them, it makes the whole process a lot easier.

    Now, obviously, your solution should also work, I'm just saying this is how I'd prefer to do it.

    This way, if you want to change the animation at some point, all you have to do is make sure the frames are the same size and it should work straight away without having to create new sprite objects and position/scale them.

    I've corrected the last example so that the hinges are the same size, but I've just scaled the sprite up, so expect some loss of image quality.

  • There is no limitation on layouts, I guess you must have confused it with layers. You can only have 4 layers on each layout.

  • GeometriX:

    That's good to know, thanks for clearing that up.

  • If you clear your cache or use CCleaner you will clear webstorage, yes. I'm not sure how it works with node-webkit. I haven't really used webstorage that much, but you could always just make a simple test youself.

    I'd say storing large amounts of data is relatively simple since you can use JSON for arrays, dictionaries (hash-table) and webstorage. I would have a look in the manual for more information on those subjects.

  • Webstorage should do the trick:

    Note that despite the name the WebStorage object does not use online storage. Since data is stored locally to the user's computer, it will work when offline, as well as for storing data like save games in offline exporters such as node-webkit.

  • Ah, I see now. The selection is reset every time the text is updated, which in your case is every tick. Put it on every 2 seconds or on the click of a button or something, so you get a few seconds to select and copy the text before it updates.

  • Hmm, no it works right out of the box for me. Using chrome and latest beta. Even if I set it to "read-only" I can still copy the text.

    Edit: You may have set the placeholder text instead of the actual text. Is it kind of grayed out? Or if you've disabled the textbox the whole thing will be gray and not selectable.

  • If you use a textbox to display the info, you should be able to select the text and copy it manually, is that what you're looking for? Note: a 'TextBox' object, not a 'Text' object.

  • TextBox.Text returns the current text in a textbox. This is also covered in the manual by the way.