Nabu's Forum Posts

  • With pleasure.

  • In this case you have to send a message from the peer to the host, apply it and broadcast the new information to every peer.

    Do you have a small project with just connection handling and color choosing ?

  • Hello,

    Use the Mouse object for detecting clicks on your text object via conditions.

    Then you have the built-in Browser object that allows you to do this via "Open URL in new window" action.

  • Hello,

    Put the values inside an array, then choose a random value from that array like :

    randomIndex = round(random(0, Array.With-1))

    value = Array.At(randomIndex)

    Then delete this array entry like :

    Array.Delete(randomIndex)

    This way, the randomly chosen value is removed from the array and your can iterate once more for a second roll (with another random index).

  • Hello,

    If you want the host to choose a color, then pick it and broadcast the information to all peers. Then make the changes peer side according to.

    From host :

    Multiplayer => Broadcast action with a tag like "ColorSet" or something.

    On peer :

    Multiplayer => On message "ColorSet" do whatever events you want to change color.

  • Hello everyone,

    I searched in the forum and through the manual, but I can't find any information on this. When the host disconnect from the room, peers are not only disconnected from the host, but also from the signalling server. Is this normal ?

    And also, in the "On peer disconnected" event, the expression Multiplayer.PeerCount is not yet updated, as if peer was still in the room.

    I must have missed something...

    Tagged:

  • Hey,

    If you don't want to use the Multiplayer plugin, you can probably run your own server and make access through AJAX and Browser object from Construct editor. That's a way to retrieve usable informations for your game from across the Internet.

  • You're welcomed !

  • Hi, if you are using platform movement you can add a variable to any obstacle you want to be like a conveyor belt, with the direction it drives the player towards. When the player lands on these obstacles, simulate movement with its platform behavior in the corresponding direction.

  • Hi, I think you can do a loop and create object at X position + loopindex*some value to spawn them in line. Like this :

    - For (number of instance to be created)

    - Create object at (X - (number of objects/2)*space between objects) + LoopIndex*space between objects, Y(previous spawn position + something))

    And tweak the formula to fix your goal.

  • Hi,

    Not multiplayer, LAN, local coop ? What is your project ?

    You can follow the multiplayer examples and tutorials to learn about synced objects. They are created both on host and peer, you can sync some variables or send a message to peer when the object is created an assign a name to it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    Using the Advanced Random built-in plugin, I was wondering if there was a way to clear all values from a given probability tables to re-use it for other purposes or value sets. And also if there was a way to delete/destroy an already existing one.

    So is there a way to :

    - clear all values from a given table

    - know the number of entries in a given table

    - destroy a table

    Thanks to everyone in advance.

    Tagged:

  • DiegoM, thanks for your answer. It's a it confusing to be encouraged to use Hierarchy as a replacement for Pin Behavior when some functions like Pin to Image Point are not replaced.

    It would be useful to be able to link child to its parent's image point for skeleton or composite characters that has animated parts, where image point is different with each frame.

  • Hello everyone,

    On the Pin Behavior page of the Construct 3 Manual, we can read that Scene Graph is a modern built-in replacement for the Pin Behavior and we are encouraged to use it.

    https://www.construct.net/en/make-games/manuals/construct-3/behavior-reference/pin

    "The scene graph feature is a modern built-in replacement for the Pin behavior. Consider using the Add child action to connect objects together instead of the Pin behavior. This has better support for connecting chains of objects together, and provides conditions that can pick instances across the hierarchy."

    Three questions about this :

    - Will the Scene Graph/Hierarchy will have the possibility to link a child to one of its parent's image point like Pin Behavior do ?

    - Will it also handle Rope Style and Bar Style available with the Pin Behavior ?

    - Will the pin behavior be deprecated after some point Ashley ?

  • dop2000, thank you for the javascript example, that is nice and simple. That corresponds correctly to the topic title, which was inaccurate. Some cases remain uncovered like for weapons attached to a sprite's image point. They must be on top of their parent sprite regardless of their x,y coodinates, becaused they are pinned. So they can't be included into the z-sorting action.

    I found some answers to this topic https://www.construct.net/en/forum/construct-3/general-discussion-7/scene-graph-154671 of users requesting Scene Graph and Hierarchy to support z-ordering.

    TackerTacker : "Something to consider is how z-sorting will work."

    https://www.construct.net/en/forum/construct-3/general-discussion-7/scene-graph-154671#forumPost1020323

    simstratic : "I also tend to think that children should inherit z-order"

    https://www.construct.net/en/forum/construct-3/general-discussion-7/scene-graph-154671/page-3#forumPost1021422

    eleanorjmorel : "Will you also add whether we can Zordering or not, and on top or bottom of the parent?"

    https://www.construct.net/en/forum/construct-3/general-discussion-7/scene-graph-154671/page-4#forumPost1022358

    So this is more about a request to add z-ordering inheritance for Hierarchies or z-order to Pin Behavior. Suggestion => https://construct3-21h2.ideas.aha.io/ideas/C321H2-I-244