jastoh's Forum Posts

  • dop2000 Changing my characters to a circle collision mask while keeping the crate's to collision polygon did solve the issue although the characters' movement got a little bouncy.

    I still don't understand why one of the characters which has a square collision polygon glides through the crates - no bounce, no sudden stopping whatsoever. I have even made another character to have the same size, same animation, same collision polygon, same points and still it wouldn't work. It'll only work if I clone it.

    Anyway this ordeal taught me a lot about the physics engine, thanks a lot!

  • Sorry, this must have my biggest blunder this week, I didn't notice this was in the Construct 3 sub forum!

    Mods, can you move this to the Construct 2 sub forum please?

    dop2000 I have removed the plugin, thanks a lot!

    drive.google.com/file/d/1EjsfEQJbfs79471NooPdOC6bjV8vyYYP/view

  • Hey All,

    I have uploaded a sample to demonstrate the problem.

    drive.google.com/file/d/1sGHGleCBfJGgOb-V3vd9B2Er77LXsOsw/view

    Use the left and right arrow keys to move the character. You can see that the surface of the crate is uneven and there are bumps as the character moves along it.

    In my full game the characters get stopped on their tracks upon meeting these bumps.

    Thanks!

  • dop2000 Tried applying a force upwards but still the same. I'll share the capx soon.

    BadMario I can't do that because the intention is for each of the crates to be destroyable. If they are all stretched on in a single img, then the game mechanics won't work.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • dop2000, I did. It causes the player character to come to a full stop.

  • Hi R0J0hound, thanks for the suggestions. I tried beveling the corners of the crates, didn't help.

    Weirdly, one of my 5 players characters was not tripping. I managed to solve the issue by cloning that working character into others. But this seems more like a workaround than an actual solution.

    Any other ideas?

  • My game is behaving weirdly. I have a Physics object P which moves left and right by applying force. When moving on a line of crates O (illustrated below) P intermittently 'trips', causing it to rotate a little and losing VelocityX, sometimes to a total stop.

    All the Os are Immoveable. Friction and Linear Damping set to 0. P's Friction and Linear Damping are also 0.

    Any ideas what could be causing this?

    P

    OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

  • Without knowing your design constraints and goals, the way to solve this would simply be to not spawn physics objects on top of immovable objects, or allow for more room for A to spawn.

    I am trying to make a bomberman game where the player spawns bombs to break blocks. The blocks are in stacks of 4. When the player is just next to a stack of blocks and spawns a bomb, the bomb gets created in between the 4 blocks.

    Any thoughts?

  • Hi there,

    When a physics object (let's call it A) is spawned on a position where there is an immovable physics object (B), A gets spawned at either the top, bottom or right of B. I think this is the physics system detecting there is a collision on two physics object hence it needs to move A to a position where it doesn't collide.

    Now if I have B, C, D and E in the structure below, sometimes A gets spawned in the center and shakes weirdly - as though as the system isn't able to find the best point to reposition A.

    B C

    D E

    This phasing is making the game appear to be buggy, anyone has any idea how to solve this please?

    Cheers!

  • My game is a platformer where the main character spawns physics based bombs. If there is a solid physics based block in front of the main character, the physics engine gets confused where to spawn the bomb. Sometimes the bomb is spawned inside the solid block and gets stuck perpetually. Sometimes it gets spawned at where the main character is, and the main character gets pushed down into the solid object it is standing on, or it totally disappears, replaced by the bomb.

    Anyone had this issue? Any ideas how to solve this?

    Note: It doesn't happen all the time hence I am not able to share the capx.

  • Hi there, I am facing the same issue. Whenever objects get near top left hand corner they get stuck there.

    Did you manage to solve it?

  • It's not a bug, if you apply bound to layout to the bird and let it move every tick to self.x+10 you will see it move across the screen and get 'stuck', this is not stuck but simply bound to the layout. The action wants it to continue out of the layout but the behaviour stops this, the same happens when you apply physics, the physics wants to push the bird out of the layout but the bound to behaviour stops this again.

    For the other question, you could disable collision of the object until it is in the layout. There is an object condition 'is outside layout', you use that to disable collision, then you use the same condition inverted so technically 'is in layout', you enable the collision of the object. This would see it drop through the border wall.

    This is brilliant!!! Thanks plinkie!!

  • Well I'm not expecting the bird to bounce off the edges but at the very least this behavior shouldn't have caused the bird to get stuck?

    It does sound look like a bug to me. I'm surprised nobody has reported this.

    On your suggestion, if I wanted spawn some objects off the layout and let it fall into the layout, any ideas how best to do this if I have a solid wall at the top?

    Thanks again.

  • That's a good suggestion, but is it because this behaviour is broken?

  • My objects are getting stuck when they are at the edge of the layout. Anyone experiencing the same? Is this a bug or did I do something wrong?

    Thanks in advance!

    dropbox.com/s/2up8b60c2dbyd8c/bound%20to%20layout.capx