Nabu's Recent Forum Activity

  • Hello,

    Thanks to you for the work done with your plugins. It's really helpful as I had troubles using Box2d and asm.js, with crash and can't fix it or neither understand. Some people have same problems of various threads in the forums, so your plugin is the only alternative.

    Many thanks !

    What is the difference between box2d linear damping and chipmunk one ?

  • Ho, thanks. I really miss something. I saw the different mass in the debugger but how to set the mass in editor ? Both objects are same, I didn't set the mass.

    Edit : Really sorry, I didn't search enough.

    "Mass

    The mass of the physics object, as calculated by the physics engine. This is the area of the object's collision mask multiplied by its density."

    From the manual : https://www.scirra.com/manual/98/physics

  • Problem Description

    Two objects with same physics settings shared by family, but having two different polygon shapes will move in different way.

    Attach a Capx

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

    Description of Capx

    Two physics objects with impulse applied to the right to see how they move. The red one is using "circle" for Physics collision mask property, the blue one is on "use collison polygon", wich is square. No gravity, no air friction or anything.

    Steps to Reproduce Bug

    • Create two same objects with physics.
    • Set the firt one on circle collison mask, the second on collision polygon.
    • Make them move the same way with no gravity.

    Observed Result

    The object with circle shape move faster than the one with collision polygon given the same impulse.

    Expected Result

    Objects with same mass given the same impulse should move at the same speed. Any thing i miss ?

    Affected Browsers

    • Chrome: (YES)
    • NodeWK: (YES)
    • Others: (NOT TESTED)

    Operating System and Service Pack

    Windows 7 SP 1

    Construct 2 Version ID

    Release 221 64 bit

  • Hello,

    When you click on the basic layer, you have the layer properties usely on the right. Under the background color property, you will see a Transparent property set to no. Set it to yes and voilà. At least, if this is your problem.

  • Here is a modified .capx that, I hope, does what you expected. The tilemap you're using is just here for coordinates, as the creation of "ressource" object doesn't affect it. "Ressource" object is not a tile and doesn't modify tilemap on creation, so you don't have to test if the tilemap is empty under the pointer, but only if the pointer already overlaps with the object. If not, you can create one at the desired position.

    I also modified the coordinates for object creation on the tilemap. The origin of your 32x32 sprite is in the top left corner, so you have to create it at -16/-16 pixels from the position given by the expression TIlemap.SnapX and SnapY.

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

  • Hello,

    You can add object in game using the System action "Create Object" or the Object action "Spawn Object". For an object to be spawn, an instance of this object type must already be in one of the layouts before, like objects on the side offscreen or in a loader layout.

    You can't add instance variables in game, but you can attach an array or dictionary and keep the UID in an instance variable to store and manage variables in game.

    Hope it helps

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well... Of course... You're right... I didn't thing about before asking. Lol

    A kind of example of your signature it seems.

    And thanks

  • Hello,

    I had a harddrive failure and I lost an entire project (medium big one... had no backup like a creep). Finaly I managed to find an older NodeWebkit exported version so I can get my graphics and sounds back from the zip archive. But I would like to know if it's possible to retrieve the Constructs 2 Events and Layouts from a compiled version.

    Anyone knows ? Thanks a lot.

  • Sorry for the delay. Ok, you want your bomb to suddenly appear on top of a random floor tile ? Or you want it to move until it reaches the tile ?

    Can you post a link to you capx project ?

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Hi,

    You can use the Sytem option Layout Scale to scale whole layout, layers and objects in it, or do it for each object with the scale property of these objects.

Nabu's avatar

Nabu

Member since 14 Feb, 2015

Twitter
Nabu has 1 followers

Connect with Nabu

Trophy Case

  • 11-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
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

16/44
How to earn trophies