Friday, 16 January 2015

[Game Maker] Slope Physics Engine UPDATE v1.3.0.0

Added some new platforms, one-way and moving (both in one case). The moving non-one-way platform still has some problems, but it works.

The code has gotten quite messy, and I need to do quite a bit of housekeeping, but I'm intending to do that after I've finished the engine (after I have finished the moving non-one-way platform and added dynamic/dynamic object interaction).

Source code (.gmz):
Physics+engine+1.3.0.0.gmz

Windows (.exe):
Physics-Engine-Default-1.3.0.0.exe


Update logs:

1.0.2.6 log:
New Features:
    - Bouncing
    - Better walking force (Obeys the laws of friction better, still not the best, though)
    - Automatic view zoom


Bug Fix: Fixed bad vector change when going down a hill or off a cliff (would angle player right into the ground).
Bug Fix: Bad collision check when on the ground (wouldn't detect the ground if vertical speed was low, and wouldn't calculate angles right when colliding with a wall).

Note: The hardest part about this update was adjusting collision detection, since game_maker's place_meeting function would check collisions with fractions of pixels, which screwed up what was counted as a collision and what wasn't.

1.0.3.0 log:
New Features:
    - one-way through platforms

1.3.0.0 log:
New Features:
    - Moving platforms

Bug Fix: One-way platforms only effect the axis that dynamic objects collide with.

Note: The moving platforms don't work the best (bad speed calculations), plan on fixing in the next update.

No comments:

Post a Comment