dop2000's Forum Posts

  • Using UIDs like this is not a very good practice. Because in a couple of weeks or months time you won't remember what UID 45 means. Also, UIDs may change, for example if you decide to copy and paste these buttons. It's always better to use instance variables to identify instances.

  • Sprite Load image from URL -> there you can choose either to keep current size, or resize to image size.

  • Have you tried uninstalling the game completely, and installing it again?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You need to use Spritefont.TextWidth and Spritefont.TextHeight expressions. Set text to the spritefont, then resize the 9patch using those expressions.

  • It's much easier in C3 - right click on Fonts folder (in Project tab) and import your fonts.

  • What export option are you using - HTML5? And how do you start the exported game?

  • Try disabling/removing each behavior and see if this fixes the problem. Also run the game in Debug Mode, check player position, layer etc..

  • There are some 'hacky' methods, but I suggest simply copying all keys:

  • There may be different ways to do this, depending on JSON structure.

    Please post an example of two JSON files you want to combine, and the result of their concatenation.

  • You need to keep track of playing tags. You can create a function which will be called any time you need to play a sound, and inside this function add sound tag to a dictionary.

    * On function 'Play'
    * Parameter 'audioName' (String)
    * Parameter 'tagName' (String)
    -> Audio: Play audioName (tag tagName)
    -> TagsDictionary: Add key tagName with value 1
    

    As a result, you'll have all tags in the dictionary. You will be able to loop through them and stop/mute them.

  • You shared an exported game, not the project file.

    If the editor itself is crashing (not preview), then it's definitely a bug. Try to replicate it in a small demo project and report it here:

    github.com/Scirra/Construct-3-bugs/issues

  • My guess is that the Box2D engine is just not very good. In the first test, for example, if you change the velocity to -50.0001, the balls start to bounce. There are probably some "magic numbers" used in the engine code, which may explain these anomalies..

    I made a quick test in C2 with Chipmunk physics and it seems to be much more accurate. Unfortunately, as far as I know, this plugin has not been ported for C3.

  • 1. In the Tilemap bar double-click any tile and you will be able to edit its collision polygon. There is also a checkbox to disable collisions completely for this tile.

    2. Sorry, I don't understand your question. If you are asking how to copy parts of the tilemap in the editor - you can configure a grid in animation editor. For example, set grid size to 128x128 and this will allow you to easily copy exact chunks of the tilemap image.

  • So the game runs fine until the character spawns a bullet, then the page crashes?

    It's difficult to help you with so little information. Please post your project file or a screenshot of the event sheet. Try pressing F11 and see if there are any error messages in the console log.

  • I doubt you will find a plugin, but there may be tutorials or examples showing how to make this mechanics.

    A while ago I helped creating this software with Construct 2. It has resizing and rotating tools, and they were made with events.