- Title: Freestyle Parkour Physics
- Description: Pure GML platform physics example. Includes wall-jumping, multiple friction
- GM Version: 7
- Registered: Lite
- File Type: .gmk
- File Size: 15.7Kb
- File Link: Link
Freestyle Parkour Physics
Example by YellowAfterlife
This nice example shows you proper gml physics (superior to about 98% of platform physics in gamemaker).
This means that character x\y are always integers and there are no collision bugs.
On ground: Left\Right = move, Up = jump
Mid air, near wall: Left\Right (direction towards the wall) + Up = walljump \ + Down = walljump down
Ground friction and air friction are different, as in real life (for maximum realism, you should set air friction to 0.01, but that would not make your game player's happy)
Player will never collides with obj_solid while jumping around. Don't try to use collision event.
Configure variables to suit your game physics.
If you cannot access direct link, try the page link - it might be the website's database issue.
If you cannot access both direct link and website, don't worry - it's under maintance. That happens once per 2-3 months and can take up to day.