oosyrag's Recent Forum Activity

  • Zango's Shark Adventure Out now on Android! Download for free!

    Subscribe to Construct videos now

    Link: https://play.google.com/store/apps/details?id=com.reflectivebyte.zangothegame

    Looks fantastic! Congrats on publishing!

  • What universe did you get the idea that that would work from?

    Edit: In the event that you're serious, just a tip - make a copy of a file before you fiddle with the bits. I'm amazed you know how to use a hex editor and not make backups.

  • PeerID is available as an expression in certain triggered multiplayer conditions like on peer connected and on message received. When used in those triggered events, it will give you the ID of the relevant peer.

    Normally you would store this in an instance variable in an object associated to that peer upon them connecting, but you can use any data structure you want, like a dictionary (key:value=name:PeerID) or an array.

    In the case of a chatroom, the simplest way would use a text object with an instance variable. Upon joining, set the text object to display the name of the user, and save the PeerID to an instance variable in that text object. Then for example if you clicked that name, it would be easy to get the associated PeerID.

    I would probably use a dictionary myself for flexibility, but that is a slight bit more complicated.

    Edit: You'll learn how to get and use PeerID better in the fourth multiplayer tutorial. That's why I'd recommended following and understanding all the multiplayer tutorials before using the multiplayer plugin, even if your end goal is just a chat room. The multiplayer plugin and multiplayer concepts are very complicated, so cutting corners will often lead to frustration in the future. The tutorials seem long, but they're actually quite concise and thorough.

  • You can do this with a tiled background and a blending mode "mask".

  • Sorry it's been a while since I worked with the platformer behavior. Messed around with it a bit and this is a more difficult problem than I originally thought. Platforming mechanics are always deceptively simple but actually quite complicated.

    To approach this I would probably want some additional hitboxes and special logic for "stairs".

    Additionally I think I'd have everything above the bottom of the character hitbox to not be solid until the bottom of the player collision box rises above the horizontal level of the top of any given platform.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Signaling server connection, room connection, and peer-host connection are all different things. You're looking for the multiplayer - room - disconnect action, which will disconnect the host from the peer (and leave the signaling room) not multiplayer - signaling - leave room.

    You can leave the signaling room (or even disconnect from signaling entirely) after making a connection with the host, and still be connected to the host. When you refresh/close your browser window you are finally closing that peer-host connection.

    Regarding the kick feature you need to use peerid, not the username.

  • Why do you need jumps? It should normally go upwards on diagonals when you run into them.

    Edit: Check out one way solids - construct.net/en/forum/construct-2/how-do-i-18/object-solid-one-direction-101758

  • This is mostly a case where left and right are constantly activated and speed set, while using jumpthrough for "rail" platforms and the fallthrough action should get you most of the way there, unless you are aiming for other specific behavior.

    Diagonals and high speeds can cause other issues you may need to work around that I'm not familiar with though.

  • AFAIK there isn't anything we can do about games not running while unfocused, its a browser/device thing.

    Some things I would try include simply increasing time before kicking, adding an "idle" state if no response received for x time before booting, or automatic reconnectingand updating when focused again. Or you can simply not show the current status of who is online or not.

    Check for javascript solutions too, since you can run scripts directly. Although I imagine scripts running in the background is exactly the kind of thing browsers and mobile devices are actively trying to prevent from happening.

  • ListBox is an html form element and comes with a lot of limitations. If you want finer control you'll want to build a custom listbox. One way is to create a text or spritefont object for each item, pin them to an invisible helper sprite to control scrolling, and using blending modes to crop the visible area (clipping mask).

  • I imagine platform would be most suitable. What issues are you having with intersections and how did you set them up?

  • Save y to a variable LastY every tick. Compare current y to LastY to see which is greater and set the appropriate animation.

oosyrag's avatar

oosyrag

Member since 20 Feb, 2013

Twitter
oosyrag has 38 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