Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Slope objects and movement

A topic by Gamer Fates created Feb 20, 2021 Views: 162 Replies: 1
Viewing posts 1 to 2

Hey I wonder how I would make the character walk up a slope? And also how to implement a slope object? Like a ramp for example

Developer (2 edits)

hey, you will need to probably look into height maps. This system only contains very basic collision detection (non-rotated bounding box). One thing you could do (however) is possibly adding a "wedge" type of model and depending on where the player is at on the "wedge" you could adjust the z position. Ultimately though it would be easiest to make/generate a heightmap. :) I hope this helps! I might possibly include them in future updates, but the software is sold as-is and there are no guarantees that this will be included. 

EDIT: Here is a great article about heightmap generation!

**Note this tutorial is for an older version of GM but the same concepts can still apply**