03-24-2020, 10:03 PM
(This post was last modified: 03-24-2020, 10:23 PM by SuperSledgeBro. Edited 4 times in total.)
Isometric slopes!
Some of you would tell me to use some long equations to create slopes in an isometric map, but since I really, really suck at math, and Game Maker, by extension, I made my own system which involves color maps.
The logic: the "real" game is actually top-down; the tilted camera effect is purely visual. The floor tiles are all individual objects drawing their sprites in tilted positions based on their placement in the game editor.
Each of these floor tiles have two variables: one for their "shape" (how they look in-game, being more tilted or flat) and another for their value in the "z" axis (their "height" in the 3D space). Each "shape" has an associated color map, which are all red and black gradients. When the pink ball stands on a floor tile, it'll move up or down in the z axis based on the tile's color map at that position, adjusting to the floor tile's height!
The good thing about these color maps is that they also allow for irregular hills and not only flat slopes.