oosyrag's Forum Posts

  • 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

  • Save and localstorage are both stored in the end user's local browser cache.

    If you're interested in cloud saving with a third party API (for example to access your save from multiple computers), you'll need to use a specific plugin for whatever service you are using.

  • Try using the Global property set to Yes.

    Global

    By default, all instances are destroyed when the layout ends (e.g. when going to the next layout). If Global is Yes, none of the instances of this object type will be destroyed when switching layouts.

    Use on start of layout to adjust position if needed.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you found another post, you can try to ping the original poster to update the sharing on dropbox. There was a change earlier this year that broke links, but the files are still there.

    In your example, the problem is that the player moves with the platform when you change the platform's position (the player gets shifted 800px to the right, off the screen.

    You can set player's position to self.x-800 (or -801? to compensate for your other events) in the same action when you reset the platform position. You'll also want to add a System-Wait 0 seconds action at the start of this event to prevent blinking.

  • Construct supports advanced audio feature such as the doppler effect, but not all browsers might.

    It doesn't matter if your mines don't move, as your ship does, and the effect is calculated by the change in distance between the objects.

    See the manual page for more information. https://www.scirra.com/manual/109/audio

  • When you destroy an object, save its properties (position, size, frame data, ect) via array or a helper object. Then when you create it again set all the properties to when it was destroyed.

    Alternatively, instead of destroying the object in the first place, just make it invisible.