matriax's Recent Forum Activity

  • Oh i see! sorry! thought was like the default platform. So to use the helpers you develop needs to have the Box2D+ too first, ok.

  • Thanks! now i can add the box2d+ to tilemaps of 1x1. Erased the entire map without problems at the moment, have to test it better.

    Found another bug

    Is just adding the Box2D+ Platform behaviour to my player sprite.

  • Colludium If allows tilemaps of 1x1 yes please. As using Box2D+ i will have to change all the physics system no problem about the changed gravity or others.

    Edit: Ok, specially i want to see the draw demo and the physics comparision Box2d/chipmunk/asm to test all options before add one or other.

    Also seems chipmunk and Box2D+ are compatibles to use in the same project right?

  • Colludium Hi, well i need 1x1 pixel in tilemap(With polygon collision) for perfect destruction and colliders. 2.5 means that in real they will need to be 3x3 minimun if i understand you well.

    The physics default behaviour can handle tilemap 1x1, why the Box2D+ that in theory is an improved version can't ¿? . Yes, at some point appears that error in previous post but can manage them at start, maybe porting some function from there to here?

    Also, please, can you add the demo .capx to the files? Will be great to play around with the different demos to see how all works.

  • Well, just bought.

    The first thing is that i had to erase all the physics behaviours on the project and then i added the Box2D+ behaviour to the TileMap Family and i got this error:

    Also tried to open a new blank project and still the same error message. Nor works on tilemaps for object or family. Tried to change for static, dyanmic and other values and same problem.

    Tried with sprites and works perfect.

    EDIT: Found the bug, with tilemaps with 1x1 pixels to 7x7 pixels not works, for 8x8 pixel size to up works(I mean the Tile Width/height). Can you fix it?

    EDIT2: Tried with my project and only works with tile width/height to 64x64 , mmm i dont know what is happening :S . Seems only works when there is no tiles on tilemap. In the moment you set at least one tile then the error appears.

    ---

    Also is possible that you include the .capx of the demo with all the tests? The one with polygons, comparision, drawing objects,etc... ?

  • R0J0hound yep, worked , thanks! I need to detect the side left-right to add -speed or speed to give the exact angular rotation but now looks much better.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm using a Tilemap with 1x1 tiles to achieve pixel-perfect destruction. Also i use canvas to read the alpha from sprites and set the tiles on tilemap only on tilesets with 0 alpha.

    I read the info in your page that says:

    [quote:2m6jdq55] If you do use a tilemap, please try not to make lots of in-game changes to the tiles – each time you do the plugin destroys all of the fixtures and then recreates them for the whole tilemap (which might cause jank if the tilemap is large).

    Maybe this is what i mean. Using solids/chipmunk on tilemap i can erase perfectly a 1280x720 tilemap full of destructible objects, but using Box2D at around 30-40% crashes and shows that error.

    This is a video of the prototype:

    Subscribe to Construct videos now

    Any chance to send you the .capx and in your side add your Box2D+ plugin to the tilemap and test if erasing all the destructible objects works or crashes in the same way?

  • Here are the shell bullets on shoot, can't fix the rotations stop after time XD

    In the default physics there is in properties an "Angular Damping" but on Chipmunk only i found:

    Damping = Decrease the simulation of the speed but affects to all objects

    Angular velocity= Is set when the shell bullet creates and keep that velocity always.

    So i made another event that if Angular velocity is greater than 0 = Sprite.AngularVelocity-10,, and works in this way but in no realistic mode, here a gif to show:

    I saw R0J0hound say this on the chipmunk physics thread

    [quote:5yyk5be0]2. applying a force in the opposite direction as the velocity or angleOfMotion.

    But at some point you get negative values, or the velocity is negative and you get positive values, don't know how to detect each case depending of angle of motion / velocity :S .

  • Colludium Your physics behaviour fixes the default physics behaviour problem on creating/destroying lots of instances?

    This error: https://i.imgur.com/H126akC.png

    I was using the physic behaviour on tilemap for pixel destruction but had to change for Chipmunk physics due this error, that seems is a know bug of this behaviour.

    ---

    One of the things i was looking to do is some kind of destruction like the next gif one. I saw your samples on you draw a polygon and this one falls with physics,etc... your physics behaviour can do that? or there is any kind of helper like the platform Box2D+ but for destruction? .

  • Seriously, why do you need physics? Your particles are simply flying, falling and bouncing off the floor/walls. Bullet can do all this. And, I'm guessing, Bullet must be much better for performance.

    Hi, actually my particles are doing that yes, and bullet is enough but i want to do more.

    I want sprites colliding with walls/floor/player, i want that after shot a bullet a shell is spawned in the other side bouncing on the floor. I want some group of objects falling and get breaks on colliding with the floor, bouncing debris(1x1 ,1x2 pixels...) and interact with others,etc...

    I just want keep all the doors open, then will see the limitation of engine, perfomance and what kind of game can be done using the cool stuff .

  • Yep, both things are considered, first just playing around to see all together and check the limitations and see how far can go this prototype. That visuals can wait for the moment . The physics pieces falling is what i mentioned in my last post, but i don't know hot to achieve them.

  • R0J0hound Oh i see! :S

    dop2000 Yes, i did it before for other game, mainly make bounce with an instance variable to know how many times did it and at X bounces disable collision and fall off outside screen to optimize the perfomance, but i really want physics if is possible.

    I was looking for physics behaviours and i found two things:

    1.- Chipmunk Physics

    I saw that in my behaviours list, i searched on forums and was ported by R0j0hound. Is more complicated than the official Physics behaviours but i achieved working for my purposes, in this case i can destroy an entire 1280x720 layout witout problems <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    2.- Box2D+ : https://colludium.itch.io/box2d-plus

    Seems to have nice features and interesting action/expresions. Anybody tested it? Somebody knows why is not on C2? I mean, why scirra guys no added/improved the actual one if seems to be much better in all ways?. Btw, being a paid plugin using it can't share the source code anymore or i can but people should buy the plugin too.

    ---

    In other side i saw this and wonder if can be achieved in C2:

    ( Source: https://twitter.com/wilnyl/status/897599318521249794 )

    Seems a procedural destruction. When a bullet impacts an X area afected, destroy x part i guess and adds sprites poligons with physics matching the form destroyed. I can fake it creating some pieces of tetris and build forms but here are just rectangles that after shot are cutted with some kind of voronoi algorithm maybe?. And then the shape is added to an sprite with physics? mmm, Any idea?

    I'm going to focus on chipmunk physics now to learn how all works and see if there is another limitation i'm missing and organize the code with all the additions that now is mess with families with physics/bullet/chipmunk,etc... XD .

matriax's avatar

matriax

Member since 22 Jun, 2015

Twitter
matriax has 117 followers

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • Viral Game One of your games has over 100,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies