I'm following a tutorial of platform custom movement and it's going really well. It's practically finished and all I want to do it change the gravity so it's not to strong. The tutorial says change to change one of the numbers from 1 to 0.5 so I did this but I think it's reading it as 0 gravity becasue nothing is pulling the character down.
The expression is:
Grav of "player" < 15 ---------|---------- Add 1 to Grav
I tried to make it:
Grav of "player" < 15 ---------|---------- Add 0.5 to Grav
Does the provided example behave in the same way? I've been told that versions of MMF2 below 243 might be having trouble with the decimal addition to the alterable value.
Actually - does using "Set Grav to Grav+0.5" work, rather than just using Add?
Yeah the example they provided is behaving the same way. It's not reading the decimals.
I tried the "Set Grav to Grav+0.5" and it worked! So that's cool.
I also tried:
"Set Grav to Grav+1", expecting it to have the same feeling as Add 1 to Grav, however it seemed much different. It seemed slower. I don't know why, it's doing the exact same thing just saying it a different way.
Why is this?
I'm not sure why there would be a difference - I'll check, though. You might want to upload a side-by-side example on the Clickteam forums for more people to take a look.
Hey on a sec, I just realised YOU did the tutorial. Good job man! It's bloody awesome. I've wanted to do custom movement for years and never found any good tutorials that really took me through simple step by step. Thanks very much.
Just one quick question: how'd you get the background moving seperately to the foreground in your tutorial example?
Also. Do you have any tutorials with ladders? I'm trying to make a ladder in the level. Can you help me out? Somthing not quite working with the gravity and ladders together.
For ladders, I use a flag that turns on if the players on a ladder. When it on, disable gravity. Then if the jump button is pressed, turn the flag off, and make him jump.
Sticks and stones can break your bones,
but words can get you shot.
I tried that with the ladders but I still haven't got it right. Can you add it to this example so I can see how you did it. I've made a ladder so you can work off that.
If "player" is over lapping "ladder" ---------|--------- stop loop Grav, start loop ladder
If "player" is (not) over lapping "ladder" ---------|--------- start loop Grav, stop loop ladder
But what is the ladder loop? That is where I am stuck...
I don't think it's something that you need a loop for, though you'd need to turn off the normal gravity detection. Perhaps creating a new group for ladder movement and activating/deactivating each one as necessary.