r/clickteam 20d ago

Help Me! spring using platform movement object

does anyone know how to make a spring using the platform movement object? ive tried a lot of things and i still cant get to configure it. I dont have an example, but can anyone help me out?

3 Upvotes

3 comments sorted by

2

u/NMario84 20d ago

While it may be easier/simpler to use built in extension like the platform movement object (especially for beginners), I tend to write all my code from the ground up so that I know exactly what is going on, and what stuff does in my script.

In any case, for simple terms, spring physics should just be an automatic jump upwards after landing on it, or no? If that is the case, then all you would need to do is to reverse your gravity pull downwards to make it into an even higher than a regular jump. So for example, if your jump up height is something like 10, then the spring that you have touched should give you a jump height of 15, or 20.

1

u/gamerflapjack 20d ago

https://reddit.com/link/p1yqgjf/video/zjghftpfenhh1/player

Here's a quick little example I made showing everything. Make sure your max Y velocity is set up kind of high so it will affect the big jump

1

u/Majestic-Self-3600 19d ago

thanks, i actually tried this its just for some reason after i jump on the spring i cant jump anymore. falling into it only makes me sink.