Nabu's Recent Forum Activity

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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

  • newt, is there any way to make hierarchy follows z-ordering ? I have a sprite that is part of the zSort family and some objects created at runtime and added to the hierarchy as children. When the sprites are sorted, the z-index of children do not follow. All I have as options is z-elevation which is a different thing.

  • brushfe, do you allow me to take your image to illustrate and clarify the presentation on the suggestion platform post ?

  • Hi everyone,

    I was wondering if there was a way to z-sort multiple object types using the system action "zSort" and benefit from the performance of it instead of relying on loops.

    Currently I have a project with characters that wear weapons, have text object for their names and informations, and visual effects. All these characters are z-sorted by their y position. So to have their respective objects following their z-order, I have to manually move in front or behind everything, which is slower.

    The sorted objects are from different object types and can't be all sorted at once inside a family. Also each of these objects are allways relative to their wearer. That is why I thought of a suggestion to make here https://construct3-21h2.ideas.aha.io/ideas/C321H2-I-244 for adding an option "Pin to Z-Index" to the Pin behavior and make the pinned object maintains its relative Z position according to the object it's pinned to.

    What do you think of it ? Did someone already had to deal with it ? Any solution or workaround ?

  • brushfe, thanks for your image.

    dop2000, of course you're right. I follow you on having the parameters displayed is the inline call.

  • I used to have hundreds of functions for triggering effects, requesting commands and running ai states. These are already in separate events sheets called via includes, with at least 20 functions per sheet. Having functions displayed as a list without each paramaters name would be easier to read through, as parameters mostly only matter when editing the function core, I think.

    I just did a suggestion here : https://construct3-21h2.ideas.aha.io/ideas/C321H2-I-497

  • oosyrag

    Some functions have 4-6 parameters, like creating something at runtime by passing name, x,y coordinates, angle, size, some informations.

    Are you talking about performance or code readability ?

Nabu's avatar

Nabu

Member since 14 Feb, 2015

Twitter
Nabu has 1 followers

Connect with Nabu

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies