Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Content

It's here! Sorry there was no early release for you guys on this one, but I was lucky to even finish in time for today.

I'll be sending a mass message shortly giving $5+ patrons free access to the final source code at https://shaunjs.itch.io/shauns-platformer

Everybody else can either get the code for free assuming they're willing to follow the tutorial, or they can pay $2+ to get immediate access.

Files

Previews only

GameMaker Studio 2 - Slope Tiles for a Platformer

▶ Source code & project base: https://shaunjs.itch.io/shauns-platformer ▶ Support my work: https://www.patreon.com/shaunjs Build a pixel perfect platformer using tile collision which handles arbitrary slopes. All in GameMaker Studio 2. Time to move on from slow and messy object based collision! My previous video on tiled collision: ▶ https://www.youtube.com/watch?v=UyKdQQ3UR_0 Due to the use of tilemaps this method doesn't apply to GameMaker Studio 1.x. You could still accomplish something like this in 1.x but you would have to build your own tile system likely using ds_grids, etc. A lot of this was based on Mike Dailly's method for generating a height table: https://www.youtube.com/watch?v=dBM5tnVRH7c

Comments

Rouven -Kajuby- Dahlen

Hey, first thank you for your great work and second, sorry I comment on such an old topic ^^. But I have a big problem I could not fix or find any solution. I made a costum tileset-sprite with 60 tiles in one row. but in the game the collision checking does not work further than the 17th tile. At the 18th tile onward there is no more collision checking working. Any help or idea?

shaunjs

I think what might have happened here is if you have too many tiles you'll draw them off the edge of the game window when you do the initial draw in order to calculate heights. You could probably fix this by drawing to surface but it might be more appropriate to just get it to work with multiple rows instead. Better still ofcourse would just be to reduce the number of tiles. Do you need 60 unique collision shapes?

Raeldor

So I was following all the instructions on the video, and everything worked I left it yesterday at 28, but didn't draw the slopes yet. Today I'm continuing but I got a compile error I don't understand "Object: initgame Event: Create at line 6 : cannot use resource name "sCol" as it is not being exported" It only happens if I use the sprite on the tileset.

shaunjs

Open up your tileset (not sprite, tileset) and untick "disable source sprite export".