oosyrag's Forum Posts

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

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

  • Yellow block -> Set angle towards greenblock. Move Forward.

  • Looks like a bug. The blue outline should be lined up with the red/yellow corner boxes. Have you tried resizing the window? Or maybe just rebooting.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Agreed it isn't recommended, but it is possibly workable. Most MMO's were hardly truly real time anyway, there was a lot of fudging going on.

    You can still get 6 states out of a single byte character rather than 8 with little work. The overhead of messages will always be a problem though, so you still have to weigh what data to transfer carefully.

    Anyways it would basically be pretty far outside the scope of a beginner, considering a normal multiplayer game is difficult enough to make properly as it is. Just throwing some ideas out as possible workarounds in case anyone really wants to do this with the capabilities we currently have. The general feeling I got was that there would be no more work done in terms of the multiplayer plugin, regardless of a new runtime in C3, so I'm not holding my breath.

    I also had some crazy ideas involving separate zones/hosts with agents dedicated to popping in and out of each server in succession to pass low priority data.

  • Set variable to len(TextObject.Text)

  • Try 0 spacing?

  • Difficult to diagnose without seeing how tilemap is set up.

    Are you loading the right image? Are your tile sizes, offsets, and spacing set correctly? Are you changing anything at runtime that might make it look different than in the editor?

  • Straight lines are easier - just use a series of rectangles with fade behind the player.

    Curves are harder, but you can do something like to make it smooth , just add lines between the circles.