Palourde's Forum Posts

  • Thanks à lot !

  • Hello,

    When using the "Call function from Map" action, I want to forward more than one parameter. I do not find how to enter more than one paremeter index in the "Forward parameters" option. I tried : 1,2,3 (1,2,3) [1, 2, 3] ... but nothing else than a single number seems to be accepted by the dialog box.

  • This is not exactly what im trying to do, but this tutorial is very helpfull, thanks !

  • Thank you, its working !

    It was a bit hard to this in a loop, but I finally found a solution. My instances are created by a first loop, in order to place them correctly on the layout. I found that it is not possible to create the joints during this loop, because construct need to wait for the next tick. I created a second loop, launched right after the end of the first one, but after a "wait 0 second" action. This second loop creates the joints between the instances created by the first loop.

  • Hello,

    I have an event that creates a variable number of a SpriteObject, and I want these objects to create prismatic joints between them. The idea is that Instance(1) is bound to Instance(2), then Instance(2) is bound to Instance(3), etc.

    All these Sprites are just different instances of a same SpriteObject. I do not find any way to pick a specific instance in order to create the joint with another specific instance of the same object.

    Is this even possible ?

  • Thank you,this is exactly what I needed !

  • Hello,

    I want to retrieve the angle of motion's value from a PhysicObject. This expression is not available in the Physics Behavior expression list, but maybe I can found it with some math ?

  • Hello,

    You can disable the collisions between two specific Pyshic objects. Pick one and use the action "Enable/Disable Collisions" in the Pysics actions category. This lets you choose what other Physic objects should be ignored by the first one.

  • Thank you,

    This is a solution I already tested, it works most of the time but also has some issues. I will use this if I do not find a better solution.

    To get the absolute velocity I use sqrt(Object.Physics.VelocityX^2 +Object.Physics.VelocityY^2)

    I didnt know that could use distance(x,x,x,x), thanks !

  • You used the wrong action in your screenshot, you have to use the "Set Solid collision filter" action, which is in the "Misc" category in the action list instead of the "Solid" category ;).

  • Hello,

    Im trying to create a damage system based on the strengt of the collisions between physics objects. One of my major problem is that whenever I want to know the velocity of an object that is colliding, I cannot get the right value.

    Here is a simplified exemple of my problem :

    When I use :

    On collision between objects A and B => Set "CollisionVariable" to ObjectA.Physics.VelocityX

    The retrieved value is the VelocityX AFTER the collision, but I want the velocity just BEFORE.

    Any Idea of how to do that ?

  • Try to use the "Set Solid collision filter" action.

    For each different sprite object, you can see a "Tag" property in his properties bar, just under the "Solid" checkbox.

    Lets assume that your water is a sprite with the "solid" box checked. You can write "water" in the "Tag" property.

    If the sprite A needs to collide with your water sprite but not the sprite B, then you have to check the "solid" box for the two sprites. Be sure to use the action "Set Solid collision filter" at the start of the layout on sprite B. You have to choose the option "Exclusive" and write "water" (with the "") in the textbox "Tags".

    You sprite B will ignore all solids with the tag "water".

  • Hello,

    For each sprite you can unchek the box "Enable collisions" in the objects properties. This will prevent all collisions to be tested on this object, so all your conditions and actions based on a collision/overlap involving this object will also be ignored.

    Checking/Uncheking the box in the objects properties will only affect the initial collision state of this objects when the layout starts. You can Enable/Disable this at any time during your game by using the action "Enable collisions" in the objects action list.

  • It was THAT easy ! thanks a lot.

    I tested everything but I forget to check the "bullet" box, lol. Its working perfectly now.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • After a few more tests I found that the collision trigger is not the source of the problem. This is the contact point that is not "triggering".

    You can test it in this capx : 1drv.ms/u/s!AkLLauK5GG7Cg8krl0rDeu3d-cuI6A

    You control the big green thing (this is basically the file I use for the players hitbox in my project. I swear that this is NOT what it looks like ^^'). You control it with the keybords arrows, via physics forces and torques.

    The smaller green object is basically an enemy's hitbox and the black rectangle is an imovable object.

    If you jut go foward and collides with the "enemy", you will notice that the texts object at the top left corner will show the collisions and the number of contact points. You should also noitce that sometimes (like 10%), the ContactCount will not change, despite the collision effectively happens.

    The easiest way to experiment this is to "push" the enemy to the black imovable object and than go for a number of collisions with it by just going backward=>foreward. You should sometime see the contact counter stay the same despite the collision counter go up.