An "extreme slide" type of move and making brick cruve

0 favourites
  • 6 posts
From the Asset Store
Make your own platformer for both the web and mobile easy with this Santas Platformer Template, FULLY DOCUMENTED
  • Subscribe to Construct videos now

    I would like to know if it's possible to do something like this as well as have the bricks curve like as they are in the video. Each brick is straight but my guess is PopCap did some type of line Bézier curve path that the prick follow. I tried slightly adjusting the angel of each prick but my ball keeps bouncing instead of rolling along the 'curve'. I suspect that each brick use 'PerPolyCollision' or Alpha Mask-based collision as well.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • To me it seems the bricks are Isosceles trapezoids..

    By using 8 points for the collision-polygon making an almost perfect circular form should be possible..

    I'm guessing though a lot of the effects are done by extra coding..

  • Maybe, though not sure if C2 can handle change collision and stuff. My guess if it's possible, there's possibly a curve trigger mask that decides if the ball is in a slide, though I would have no idea on how to do that.

  • It would be hard to manually position the blocks. It's a bit better if you use qarp() to do a bezier to position them, but it's still a polyline instead of a curve. You could increase the number of blocks to make it smoother so the ball wouldn't jump.

    I suppose you could change the collision polygon to be curved but it would be very hard to get it perfect.

    A better solution would require rolling your own collision detection and collision response with events so you can use beziers for collisions.

  • Oh, this seems to work pretty good, actually, Thanks ever so much. Though having multiple of the markers seems to place the curves in odd positions. I assume it works on which is added first the layout?

  • Yeah it's based on what was added first. The first three points for the first curve, next three for the second and so on.

    Here's it tweaked to use instance variables for the p sprites instead of using the iid. "group" is used to specify the bezier number, 0 for the first, 1 for the second, and so on. To use more than two you need to change the "repeat 2" condition in events. The other instance variable is "handle" which specifies what control handle the point is.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)