dop2000's Forum Posts

  • There may be some useful information in this post:

  • Yeah, you need to make custom particles with sprite, bullet and fade behaviors.

    Sprites are slower than Particles plugin, but unless you are spawning thousands of them, it should be fine.

    And of course you should be able to mirror, rotate, change frames, bounce and do lots of other cool things with individual particle sprites.

  • You can change the angle for Particles object. I believe if you set it to 180, it should have the same effect as mirroring.

  • With predefined positions you can put invisible sprites (SpawnPoint) in each position and do this:

    SpawnPoint Not Overlapping myObject

    ...System Pick random SpawnPoint -> SpawnPoint spawn myObject

  • rafaelsorgato

    See this post, it could be relevant:

  • You need to save your txt file in UTF-8

    Try opening it in Notepad, save in UTF-8 and then re-import to your project.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The image in your sprite should be facing right (at 0 degrees).

    Also angle(x1, y1, x2, y2) and angle(x2, y2, x1, y1) are not the same thing!

  • You can use lots of sprite instances, or you can use one tilemap. It depends on what you need to do with these cells.

    With both methods you should be able to detect which cell was clicked.

  • Try Pathfinding behavior.

  • It would really help if you share your capx file.

    "NaN" could happen if at some point you are dividing by 0 (which is not allowed)

    I have a zoom demo, but it's not quite what you want, as it zooms to screen center, but maybe you could modify it:

    (test in Chrome)

  • Check this demo:

    https://www.dropbox.com/s/onbdpqo7pfpvf ... .capx?dl=0

    Left-click a car, then right-click the spot where it should drive.

  • Well, you can probably define 4 tilemaps like that on each intersection (for cars coming from each of 4 directions).

    When a car approaches the intersection, check which of the tilemaps it is not overlapping and use this tilemap for pathfinding for this car.

  • Here is one way:

    Make an invisible tilemap (green area) as on this picture:

    Tilemap should not be solid.

    For Car in pathfinding properties set Obstacles:Custom and in evens add that green tilemap as an obstacle.

    But if you have lots of cars moving in different directions, this trick will not work.

    You might need to use some other method instead of pathfinding.

  • I don't understand your question. Why do you need quotes?

    Your source string is this:

    sourceString= "Lorem ipsum dolor sit amet.&newline&Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&newline&Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.&newline&Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."

    You do

    set targetString to replace(sourceString, "&newline&", newline)

    And when you display targetString on the screen, there should be line breaks where needed.