mattb's Recent Forum Activity

  • Ok here's another version without the drag-drop, & just an impulse to start things off. There's still some movement of the inner balls (which gets worse if you enable the infinity sleep time action) but it's pretty close to the expected result i think, & probably as good as the physics will allow.

  • Newton's cradle in 3 events The key is to use the circle collision shape, max elasticity & zero friction.

  • ***EDIT: updated the capx***

    Here's an example that I thought might be interesting - it's a simple grappling hook that uses the slide constraint & raycasting:

    [attachment=0:1tspm841][/attachment:1tspm841]

    It's a stripped down version of a more complex system I'm working on (with rope wrapping) so there might be some usused variables & it's not commented very well.

  • I likes that idea, and it was pretty easy to do, so thank-you

    For your relationship's sake I recommend implementing a custom letHerWin radius/score multiplier

  • You're right, never noticed that. Here's a pic showing a similar thing happening in a different tilemap. It only happens on that one tile - the rest work ok.

    [attachment=0:1anivlxd][/attachment:1anivlxd]

    (not a great example, but what happens is the normal arrow sprite hits the tile below the top one)

    Btw Prominent, I played some of your game the other day (cool stuff) & have been meaning to give you feedback - will do tomorrow if I have time.

  • Great stuff. Those fluids look good (physics circles on a layer with fancy blending mode?). Something you might try is different physical properties on the lines, eg. a rough jagged line (crayon/charcoal?) that has high friction, or a smooth zero friction line (ink/watercolour?). Or even make a springy line using constraints between segments for drawing ropes or trampolines.

  • Nice little prototype. I think it's too small to worry about condensing events, & too early for polishing. Instead I think you should experiment with extra game mechanics, here's some ideas that sprang to mind while playing:

    -it's kind of an arena shooter without the shooting (arena dodger?) so how about some of the tropes from those games like a countdown to announce the next wave, or indicator to telegraph where they will spawn.

    -some kind of powerups: extra maneuverability, speed, shield recharge, bombs, decoys...

    -it's an evasive game, so how about scoring based on near misses? if you pass within a certain range of an enemy maybe a power up bar increases.

  • Rojo this is awesome, it's opened up a huge range of game design possibilities. But it does mean that I now have to rewrite my whole game (probably only with half as many events)

    I've attached a test capx for everyone to see how raycasting works with the various collision shapes chipmunk has to offer, amazing stuff.

    By the way Rojo, the raycast query doesn't seem to work if chipmunk is used as a family behavior. Not a big deal but I thought I'd mention it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes that'd be great thanks.

    I was wondering, since chipmunk has raycast options could I somehow get a ray hit position & normal (on eg. an immovable sprite) without shooting out physics object then using post-collision info? I see there's a raycast query condition, but that's only for picking the first object hit.

  • R0J0hound

    Thanks for the mass/size example.

    I'll have to give this more thought to keep things simple. Ideally we could coose from:

    layout x,y

    imagepoint

    relative to orientation of the object *(what's currently done)

    My preference would be imagepoint, in keeping with C2's physics behavior. I do prefer your method of object picking by UID though, & it'd be nice if you could put -1 into the UID box as a 'constrain to world' feature.

    Nitro187

    For angular damping make a damping variable from 0-1, then you'd add the action: Set Chipmunk angular velocity to Self.Chipmunk.angVel * 1-damping

  • Here's some basic benchmark scenes to compare box2d with chipmunk. Both give me very similar fps & cpu readings but I didn't leave them running for long. A noticable difference between the two is that chipmunk ignores the size of the sprites when applying forces; with c2's default physics you can see that larger sprites lag behind as you move the mouse around.

  • Great stuff Rojo, the prevent rotation is appreciated.

    I've been trying out constraints today & something that might make the menu more user friendly would be the ability to choose an imagepoint in addition to the rect/polar offset options. Also a pick object menu would be handy.

    ps. me & Prominent will buy you some dog biscuits in return for tilemap support

mattb's avatar

mattb

Member since 21 Nov, 2012

None one is following mattb yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies