TheDev's Recent Forum Activity

  • I meant "anything" on the same layer, for instance... You know a brutal way to simplify and optimise collision checking on many objects.

    Families! Thanks for the tip, Ashley.

    Do families help the performance of a game for collision checking for instance?

    If I have 50 sprites (5 types of sprites, 10 instances each) to do a coll check with a physics ball(player) if I put them all in the same family, will the engine do just one coll check for all at once?

    Or is it purely to simplify the event sheet?

  • Probably not the first one to request that, but here goes:

    It would be very nice to have a feature for the physics behavior that simply checks if there's ANYTHING underneath the player. So we can know when the object hits the floor. Without having to do collision checks with every instance of a sprite. Check underneath through 10 pixels (user defined)... if you hit anything, it's true, if not, it's false.

    Also, if physics could interact with a simple solid object... I wonder if it would make collision checks a bit faster or help the above at least?

    Thanks

  • Thanks for your replies guys.

    Rockman: Yes.

    A typical level I'm making has around 200 ground sprites divided into 7 types of sprites. It was my understanding that the game does coll checks only on those on-screen. Am I right? There are never more than 20 of these sprites at once on-screen, and still, I get 1-3fps using Cocoon on a slow 600mhz mobile device.

    It would be very nice to have a feature for the physics behavior that simply checks if there's ANYTHING underneath the player. Without having to do collision checks with every instance of a sprite.

    Also, if physics could interact with a simple solid object.

    TL22:

    I want to make use of physics destruction. Nothing crazy because I want it to run at 30fps on a iPhone2 but still I want it to feel like it's not as rigid as a platformer. Do you think a ball-rolling type of game can properly be emulated using only the platformer behavior?

    If so, what about interactions with physics objects? I don't want to have to apply both the solid and physics behavior to my ground sprites.

    Thanks buddies

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The slightest hint would be very appreciated.

    Unless I'm trying to do something C2 can't do?

  • Hey there!

    I'm trying to make my physics character able to double-jump but the double-jump should be an attack if an enemy is nearby.

    So I check the distance:

    Distance(char.x,char.y,enemy.x,enemy.y) < 300 = attack

    Distance(char.x,char.y,enemy.x,enemy.y) > 299 = double-jump

    Only I can't figure out how to make sure the player jumped before allowing the attack and how to tell when the player is NOT jumping.

    I tried setting a variable JustJumped to 1 when I jump, but how can I tell the game the physics character is on the ground to set the var back to 0?... without using insane collision checking on all ground sprite in the level.

    Also, If I just walk by an enemy the distance becomes < 300 so my char. attacks instead of jumping.

    Any idea?

    Also, is it a bad idea to use a physics character. Could I emulate a sonic-like ball destroying physics objects on its way with a platform behavior instead?

    Thank you!

TheDev's avatar

TheDev

Member since 24 Jul, 2012

None one is following TheDev yet!

Trophy Case

  • 12-Year Club

Progress

12/44
How to earn trophies