======> the weight part PLEASEEEE.<=====================================
I want to make a Mario like platform game and I’d like to make some platforms that go down when we step on them and go up if we step off them.
Thanks man, Actually I’ve already had read that but anyways I think I’ll take a look at that again.
I’ve been googling for about a week for something that explains the relation between sin or cosine function with repetitive events/actions when dealing with games but no luck. I bumped on that code but I wouldn’t like to simply use it without understanding what exactly each part does.
The thing I want to do is: a Platform that goes up and down and when we step on it, then it would go down faster due to the character’s weight and when we step off it, it continues the up and down movement with its normal velocity.
Somethin like weight, acceleration and sine and cosine functions… etc