Skip to content
Discussion options

You must be logged in to vote

First of all, what does 1x3 object even mean? One pixel in height and 3 pixels in length? Sonic probably won't be able to collide with such object in most cases

Next, let's take a look at obj_spring_d_yellow:

var _height_map = 
[
	16,16,16,16,16,16,16,16,16,16,16,16,16,14,14,12,12,10,10,8,8,6,6,4,4,2,2,0,0,-2,-2,-4
];
	
obj_set_solid_sloped(_height_map);

Heightmap is an array of numbers where each number represents the height of the object from it's centre at a specific horizontal point. The larger the value in the array, the higher the surface at that point

You can disable the spring’s reaction to the player and observe how it behaves

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TrianglyRU
Comment options

Answer selected by TrianglyRU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants