Squishy Ground Physics

by DevonX


Posted on November 11, 2006 at 11:33 PM



Alright, I don't know if anybody has done something like this but too bad if you did. Mine pwns all (JK). This is example shows how to make "squishy" ground and how to bounce a ball on it and have it react. I'm sorry but I didn't make this very changable, but if you understand the code (which could be fairly easy) then you could see whats going on. I'm too lazy to comment it but I hope you learn something from it. If you download, please leave a comment on what I can do better or what I can add.
Comments Highly Apreciated



biggoron commented November 12, 2006 at 12:10 AM
Heh, I liked that a lot ^_^ I can't imagine what use I could have for this but it was a lot of fun.

10/10
HeroofTime55 commented November 12, 2006 at 12:10 AM
Wow, this was interesting. There are some things that don't work absolutely perfect, and it's done in D&D, but cool nonetheless. 8/10, which is quite high for something done in D&D. Had to recode the "random 1/60 chance" thing to a click to create a ball.
Patrick7286 commented November 12, 2006 at 12:13 AM
i played it. the only problem is that when the line is bent upwards and the ball hits it, its not "squishy" it just stops then slowly moves down. I'm feeling nice xD 9/10
Misconstruct commented November 12, 2006 at 12:13 AM
Pretty cool.
---
9/10
---
- Sincerely, James Eastman
DevonX commented November 12, 2006 at 12:16 AM
the main glitch that i know of is when a point gets stuck in a ball and it keeps going up for a while and looks funny.

@Herooftime55: what are you talking about D&D? I only put a couple simple things in D&D cause i didn't feel like writeing them. If you look at the codes the bulk of the example is there.

@Patrick7286: the reason i called it squishy is because I didn't know what else to call it, and I still don't
Gamer3D commented November 12, 2006 at 12:17 AM
It's interesting, but it doesn't seem to act like anything other than a large, physically inaccurate spring.
DevonX commented November 12, 2006 at 12:18 AM
@Gamer3D: who cares, it's fun to mess with.
poultry commented November 12, 2006 at 1:12 AM
Definately not squishy.
HeroofTime55 commented November 12, 2006 at 1:28 AM
You did some fairly noobish D&D coding primarily such as the 1/60 chance of creating a ball. It dosent kill the example, but it shows you are either a) not very experienced in GML, or b) very lazy. It was actually easier to just put the code in the global left pressed event, without the random thing, which gives the user control over the balls creation. The first time I ran it, no ball appeared, so I had to look over the code to find the problem.

Please put more effort into cleaning up examples. This is, after all, 64Digits, not some other little site. If you have the skills to clean something up, please don't leave it messy. After all, you have to wait a week for your work to get accepted, so you may as well make it look as best you can.

It's been a long time since I've even touched D&D, I do everything in scripts and code. So I might be a little harsh on that. Don't take it personally.
DevonX commented November 12, 2006 at 1:51 AM
@HeroofTime55: Ty, I'll take your advice and lets hope people like my examples more in the future.
Mordi commented November 12, 2006 at 2:40 AM
Nice one. This could be used for a Loco Roco clone.
LoserHands commented November 12, 2006 at 3:00 AM
Wow, that is pretty cool, yet there aren't many uses for this, 8/10
Rob commented November 12, 2006 at 3:19 AM
that sucked, it was very poor physics.
5/10
ParadoxEquation commented November 12, 2006 at 4:19 AM
I see that you are trying to "emulate" a ball hitting a string in the real world. I will consider this as a good start. Now, try to have the string moves without having zig-zag lines. It's possible. Use a sprite and twist it around. I can be a bit tricky to code, but the experts have done it. (Ex. movement of water in "New Super Mario Bros" in Nintendo DS)
legacy2 commented November 12, 2006 at 4:31 AM
Its good, i find it quite original.
8/10
Jesper commented November 12, 2006 at 11:06 AM
Very good! 8/10
lalle_calle commented November 12, 2006 at 11:21 AM
COOL
Bozebo commented November 12, 2006 at 11:33 AM
good, my only criticism is that the grown keeps wobbling for a bit too long after the ball bounces off, and itd be very hard to make proper use of. i give it 9/10
Bozebo commented November 12, 2006 at 11:36 AM
oh and "new super mario bros" was not written in gml.... obviously, its prolly written in c so it allows much much much much much much much more control
E-Magination commented November 12, 2006 at 12:00 PM
Very, very smooth.
Siert commented November 12, 2006 at 1:35 PM
I agree with ChIkEn
Alert Games commented November 12, 2006 at 2:27 PM
It was okay. It was quite bouncy though.

8/10
DevonX commented November 12, 2006 at 6:36 PM
---Nice one. This could be used for a Loco Roco clone.
@Mordi: Thats what I was planning on using it for.
shadowstrike32 commented November 12, 2006 at 7:24 PM
Bozebo: the New Super Mario Brothers was coded in a modification of C++, much like every other Nintendo game (aside from the earlier ones). C++ does provide more flexibility with the machine, but in this case the only difference would be speed.

This was a neat example, fun to watch, but i cant think of any practical use for it.
Robot Freak commented November 12, 2006 at 7:25 PM
HAHA :D Very good!!!
something for the next version: make the ball's bounce at eachother
9/10
DevonX commented November 12, 2006 at 7:30 PM
@Robot Freak: that shouldn't be too hard to make them bounce against each other.
Vilx commented December 17, 2006 at 6:37 PM
very good 10/10
TomatoeWorm commented December 28, 2006 at 8:16 PM
Amazing. Only bad thing is that it can sometimes look like pointy ground.
Ice of sweden commented June 08, 2007 at 6:53 PM
damn i can't donwload gm6
edmunn commented July 28, 2007 at 6:05 AM
10/10

reminded me of loco roco
grumpymonkey commented August 23, 2008 at 11:04 PM
this can be used to make a cool water effect =P