Block Drop

andrewvanderhoofandrewvanderhoof Member Posts: 2
edited June 2012 in Working with GS (Mac)
I am working at a tech camp, and one of my students is working on a game that involves blocks dropping from the top of the screen to a paddle that moves horizontally at the bottom. The object is to catch a certain number of blocks as they fall, and once a certain number is reached, you would move on to the next level. The problem we have is with the blocks landing on the paddle. As they pile up, the paddle slows down until it stops altogether. We've tried tweaking the density, etc on both but to no avail. What should I have him do so that the blocks continue to pile up without affecting the movement of the paddle? This is my first time teaching this class and I am a little confused. Thanks alot.

Answers

  • jn2002dkjn2002dk Member Posts: 102
    Not at my mac at the moment but i'd imagine making the blocks drop through rules rather than physics should solve that problem

    You could either use self.time and move them in increments or interpolate them

    If you do it like that instead of using physics there shouldn't be an issue with slowing down
  • andrewvanderhoofandrewvanderhoof Member Posts: 2
    We have them dropping through rules, but we need the blocks to stick to the paddle as well as to each other, with some flexibility for them to fall off if we move too fast. If they stick to the paddle they slow the game down, and if they aren't sticking they are simply in the same place when the paddle moves and drop past it.
Sign In or Register to comment.