1 decade ago
by Joncom
@collinhover: Hmm. Not sure. I kind of thought static bodies were, in a sense, always sleeping. Because they don't move, and thus a lot of calculations that may be necessary for dynamic bodies can be skipped. I mean theoretically, should a static body ever NOT be sleeping? Is there a logical reason for it not to be?
I agree, there is no reason for static bodies to wake, but I seem to remember that was part of the issue. Static bodies could never change their sleep state, and were incorrectly initialized as awake. It was fixed in the c++ repo a long time ago, but quite a few web ports are of versions just before the fix.
1 decade ago
by Aquen
Is it possible to make the character slower? Or that he doesn't accelerate?
1 decade ago
by Joncom
Quote from Aquen
Or that he doesn't accelerate?
The player already "doesn't accelerate". When the player moves, he is instantly travelling at full velocity. So what do you mean exactly?
Is it possible to make the character slower?
Yes, just change the value used when moving. Instead of:
this.vel.x = -100;
Try:
this.vel.x = -50;
1 decade ago
by Aquen
This could have come into my mind. Very silly question....sorry.
With this changed the accelerate thing doesn't matter anymore to.