icecapboy Posted July 13, 2006 Report Share Posted July 13, 2006 Hey, How would you make an active object whose in static movement sink down in quicksand and able to become free while jumping? I'm using The Games Factory and I would need the events for this, if possible. Link to comment Share on other sites More sharing options...
hRook Posted July 13, 2006 Report Share Posted July 13, 2006 Quicksand is overlapping Sonic * Sonic Y Position = Sonic.YPos + 1 (Or whatever number) User presses Fire 1 Quicksand is overlapping Sonic * Set gravity to -5 (Or something closer to 0 than your default jump value, assuming you did it this way) Ask for any more help. 1 Link to comment Share on other sites More sharing options...
Asuma Posted July 13, 2006 Report Share Posted July 13, 2006 Sage beat me to it. Link to comment Share on other sites More sharing options...
LarkSS Posted July 13, 2006 Report Share Posted July 13, 2006 Are you talking about Sonic or those blocks that float on the quick sand and sink when you're on them but float up when you're not? If you're talking about Sonic, use Sage's method. Here's the events for a block. Bottom Detector overlap Block On Ground = True ( not sure if it's 0 or 1 for true for you ) Block overlap Quicksand Top Y Position of Block is less than Top Y Position of Quicksand + 30 * Set Y Position of Block to Y Position of Block + 1 * Set Y Position of Central Detector ( you know, the main detector ) to Y Position of Central Detector + 1 Bottom Detector overlap Block ( negate it to check if false ) Block overlap Quicksand Top Y Position of Block is greater than Top Y Position of Quicksand - ( height of block ) * Set Y Position of Block to Y Position of Block - 1 * Set Y Position of Central Detector to Y Position of Central Detector - 1 And there you go. I added the condition 'Block overlap Quicksand' just incase you want to make the block start off on land so you can push it into the quicksand. You wouldn't want it to sink if it's on land right? Well I hope that helps you in anyway and if not maybe it'll be helpful to you in another situation. I'm always available to make a tutorial for you as well. Link to comment Share on other sites More sharing options...
Recommended Posts