dop2000's Forum Posts

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • What do you mean? You can resize and rotate any object with actions or Tween/Sine behavior. There are also Rotate and Orbit behaviors for rotation.

  • Here is a demo with two methods, enable one event group at a time and see which one you prefer:

    dropbox.com/s/mecf2ytroqh8wh4/ShipFiring.c3p

  • What if the ship is flying sideways, should the bullet fly straight up at 500 px/s? Or should it fly up and drift to the left?

    My guess is that the second picture is correct?

    In this case an easy solution is to apply two Bullet behaviors. One with speed 500 in the direction of the gun. And another with the ship velocity in the direction where the ship is moving.

    You can get the values for the second behavior with these expressions:

    shipVelocity = distance(0, 0, Ship.Physics.VelocityX, Ship.Physics.VelocityY)

    shipMovingAngle = angle(0, 0, Ship.Physics.VelocityX, Ship.Physics.VelocityY)

    .

    Or instead of Bullet behaviors you can set bullet position with events.

    When the bullet is spawned, save these values in instance variables: a1=bullet angle, s1=bullet speed, a2=ship moving angle, s2=ship speed.

    Then on every tick do this:

    Bullet Move s1*dt at angle a1
    Bullet Move s2*dt at angle a2
    
  • Yeah, but if you open the file nftUser.json included in your project, there is no "raids" array. You need to either copy the correct data into the project file, or request it from the web server.

  • This is the easiest method:

  • In your function you are trying to get data from "raids" array in JSON. But your JSON data doesn't have an array with this name. There is "assets" array, maybe that's what you meant?

    You can use any online JSON formatting tool to check the structure of your JSON file.