oosyrag's Forum Posts

  • Multiplayer games are complicated and nearly impossible to diagnose without a capx or c3p file to look at.

    If you follow and understand the official multiplayer tutorials you should be able to solve your problem.

    It sounds like the host is not creating an object to associate with your peer on peer joined.

  • Here is a basic bare bones example of how to implement and keep track of a "vertical position" value as data only (my numbers are represented by m/s for a natural feel, but you can use whatever unit you want to fit into your system).

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

    The hard part is the collision filtering (custom solids behavior) system that can interact based on an objects "vertical position". This I can't really help much with, but it looks like you've got something to work with there already.

    Edit: Also event 5 is what stops gravity from acting and (when Zheight is 0, or "at rest" on the floor). You may need to add some events to account for "resting" on different levels, such as on top of a box. Your Z height will be greater than 0, but it should not be accelerated by Zspeed and Gravity anymore.

  • With the browser object, it immediately downloads the file with the filename set in the action and to the browser's download directory without prompting. Maybe it's a Chrome setting as the default action...

    I'm looking for an action that simulates the Right click on link -> Save As... functionality.

  • Is there a way to invoke a download with a system/browser file chooser dialogue?

  • Add else to your second toggle event.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try changing on collision to on overlap, and adding the additional condition that the meteor is NOT overlapping a cover object.

  • You want to have a "state" for the player, and use that state as a condition in your collision event.

    You can use a boolean instance variable for your player - IsJumping, true or false.

    Add a compare instance variable for Player IsJumping False to your collision event.

  • You are using on overlapping. If you persist, it saves the location so once you go back to your first layout, you are still overlapping.

    Change it to on collide instead, with Trigger Once.

  • Can't help without seeing your project event sheet.

  • Do you mean you want him to be back at the same spot when you return to the layout a second time? Then you want to add the "persist" behavior.

  • Sorry having a little trouble understanding because of translation I think.

    Do you have the "Scroll To" behavior on the player?

    When you change layout, you'll have to position the player where you want with an On Start Of Layout event.

  • I'm a little confused about what exactly your question is...

    Construct doesn't care what order the data is returned in.

    As long as the triggering event On Completed with a tag is run, within that event, AJAX.lastdata will give you the data from that specific tag's request. It doesn't matter if it comes back before, after, or at the same time as another AJAX request.

    Basically, you should never use AJAX.lastdata outside of an AJAX On Completed event. If you need to get it later, save it to an array or variable of your choosing.

  • AJAX requests can be tagged to identify the request. Then in the OnCompleted with that particular tag, the LastData will be for that specific request only.

    So basically the tag you are looking for is by event, in the AJAX On Completed condition.

  • You don't necessarily even need a global variable. Assuming one group starts out active and the other starts out inactive and you only have 2 player groups.

    On Switch Player Trigger -

    -> System: Set group "Player1Group" Toggle active

    -> System: Set group "Player2Group" Toggle active