dop2000's Forum Posts

  • No, that's not possible. The only way to refer to a specific instance inside an expression is by IID. For example, Sprite2(9).x where 9 is the instance IID.

    You can also make a function which will pick Sprite2 instance and return its x or y. In this case the expressions may look like this:

    Sprite1 set position to X=Functions.getSprite2X("right"), Y=Functions.getSprite2Y("right")

    .

    Instead of System Pick condition you can use Sprite Compare Variable condition - it works the same way, but will look better in the event sheet.

  • The easiest option is to manually stretch the tilemap in layout editor and fill it with tiles. Tilemap uses very little resources, so you can make it really big if you want.

    In most cases in C3 you don't need to know window size or handle Browser.OnResized if you use the right scaling mode. Check out this tutorial:

    construct.net/en/tutorials/supporting-multiple-screen-17

  • This will be very difficult to do with Text object, because fonts are rendered differently on each device. The easiest solution is to put each line of text into a separate text instance.

  • It's a known issue.. I have to manually move all texts up in the project when I export for iOS.

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

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

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

  • Lucas Jogos My reply was for evaristo24. If you have a question about blogger.com API, you should probably create your own thread.

  • evaristo24 I don't know if you can use google drive for this task. The file should be available for unregistered users and in clear text format, google drive doesn't support this.

    Try searching for some other service which allows to share plain text, here is an example with pastebin:

    https://pastebin.com/raw/s0KccyVC

    If you create an account at PasteBin, you will be able to edit your pastes (which you will need to do when you release a new version).

  • + System: On start of layout
    -> AJAX: Request "https://mywebsite.com/app_version.txt" (tag "ver")
    
    + AJAX: On "ver" completed
    ----+ System: ProjectVersion < AJAX.LastData
    -----> Browser: Go to "https://play.google.com" (target self)
    
    
    
    
  • Prismatic joint by definition does not support rotation.

  • Why do you expect prismatic joint to rotate? It's not supposed to. Revolute joint should be used for rotation.

    Like I said, you can connect another sprite to the car with prismatic joint, that sprite will not rotate, but will work as a spring or a shock absorber. And then you attach the wheel to that sprite using a revolute joint.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can make an AJAX request to your webserver or some other service like pastebin.com to check if there is a new version. For example, it can be a simple text file with the latest app version number, uploaded somewhere on your website. Request that file with AJAX, compare version number and if it's greater than the app current version - redirect user to Google Play.

  • Prismatic joint probably doesn't allow rotation. You can add an invisible WheelBase sprite connected with prismatic/distant joints, and then connect the wheel to WheelBase with a revolute joint.

    I have a simple example of a car with suspension, check it out:

    howtoconstructdemos.com/physics-car-with-suspension

  • I suggest using relative positions. When you edit mesh points manually, check how their relative positions are changing on the properties panel. For example, the default relative position for the top right point (1,0) is (x=1, y=0)

  • You can change mesh point position or elevation in runtime using "Sprite set mesh point" action.

  • Dropdown list looks limited. Can we use it with text input? (Looks like Layer, X, Y) It is more useful. We can create any template with one action, using expressions or globals...

    Totally agree! I was planning to use templates to show various popup dialogues, definitely need to be able to write expressions in the template field.

  • You are welcome, I guess :)