oosyrag's Recent Forum Activity

  • You would have to have each peer send a message with the relevant information to the host, and the host relay that message to peers. Use tags to facilitate logic to decide what gets sent to who.

    Generally speaking, such an approach will not solve your lag problem. On the other hand, if your project is for school only, your host and your peers should all be local, in which case the internet quality doesn't matter at all.

    If you don't have a good understanding of the difference between host, server, and signalling server, recommend going through the multiplayer tutorials again carefully, or you'll have bigger issues than just lag down the line.

  • https://www.scirra.com/manual/126/system-expressions

    [quote:3rssxxyz]CanvasSnapshot

    Contains the resulting image from a Snapshot canvas action after On canvas snapshot has run. (Note this expression is not available immediately after the Snapshot canvas action - you can only use it after On canvas snapshot triggers.) The expression returns a data URI of the image file. This can be loaded in to a Sprite or Tiled Background object via Load image from URL, sent to a server or stored locally, or opened with the Browser object in a new tab to save to disk.

  • You may want to set up custom events for movement and collisions if at all feasible. I've run into this issue before with pixel perfect blocks sliding up against each other where solids did not play nicely. Adjacent pixels count as colliding and solids will block each other.

    Although if anyone has any other ideas I'd be interested as well.

  • You probably have bullets being created every frame, or tick.

    Try adding an Every X Seconds condition to your bullet spawning event, or other condition to limit the rate that event fires.

    Remember the entire event sheet will run once per frame.

  • I think something got misunderstood here.

    This is as described in your image. The indicator is based on the x/y of the projectile, constrained to the viewport bounds. I think this isn't the end effect you are going for though...

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

    If you want an indicator to show where the object is expected to enter the viewport based on angle of motion, you'll need to raycast and see where the ray intercepts the viewport bound and as 99instacesgo suggests. There are ways to do this without plugins as well, but it is an intermediate-advanced task. https://www.scirra.com/tutorials/902/li ... raycasting

  • Generally the safest way is to include your file as a project file in your capx.

    Otherwise you need to have the server your file is located on specifically set up to allow cross domain ajax requests. Which is exactly what the manual entry describes.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Check out the vertical space shooter example that comes with C2 too (when you go to new project), most people miss it.

  • So the problem is in event 8 - your peer is creating an object. Multiplayer sync only works from the host's point of view. Whatever is being created on the peer side does not sync to the host.

    The host should be responsible for creating the object when the peer joins. If synced, this will create the object on both the host and the peer. The peer then associates the object created as their own.

    This is described in more detail in the following:

    https://www.scirra.com/tutorials/915/mu ... ame/page-5

    https://www.scirra.com/tutorials/915/mu ... ame/page-6

    Sorry for being preachy, but I'm going to again highly recommend going through all the official multiplayer tutorials. The first one is full of concepts only yes, and it serves as a basis for understanding why the multiplayer plugin was set up the way it is. The following three are step by step tutorials that showcase and explain all the bare minimum building blocks of multiplayer games.

  • There are so many things that can go wrong with a multiplayer game it will be impossible to give you advice without a capx. It would also help if you linked the tutorial you are referencing.

    But first to confirm it's not a routing issue, are you testing locally with multiple browser windows or are you testing across a network?

    Also have you done all the official multiplayer tutorials and understood them? You will find it painfully difficult to progress otherwise.

  • When you export and minify, nothing should be readable.

  • Same thing. Set opacity to sprite.opacity-dt

    If you want to constrain it so it doesn't go negative, you would do max(0,sprite.opacity-dt)

    Alternatively, use the fade behavior.

oosyrag's avatar

oosyrag

Member since 20 Feb, 2013

Twitter
oosyrag has 39 followers

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies