Loading...
87
2 months ago

Adding moving platforms.

Check the description for more detailed information.


SO, have you remembered my collision engine? Great. If you don't even know about it: check out the previous post, where i have wrote everything.

So basically, what did i add? Well, firstly, to you to know, i have made resolution of game 480 by 270 using thing like "surface_resize()", and if you have seen some pixel moves on video - don't worry, it's planned, everything's alright.

Secondly, i have made MOVING PLATFORMS!!! Well, actually, it's not that hard to code 'em, hardest thing was to make sync them with player, cuz moving platforms are moving in Begin Step Event, and player is moving in Step Event.

If you don't get it, look: firstly, GameMaker activates Begin Step Event, in the start of every frame, and AFTER Begin Step plays Step Event, and after Step Event plays End Step Event.

Like, yeah, hard things, hard to sync X and Y coordinates in different times of frames, but using tutorial from Peyton Burnham, i manage to make this work in perfect sync.
Right now, i'm fixing collision slopes, cuz their code isn't perfect, and must be more detailed and edgy with semi-solid walls.

Also: i added acceleration and diacceleration (idk how to write it right, sorry, i'm dumb), using thing that called Approach. Like, it's not GameMaker function, it's script, that i stole borrow from internet. And also i added jump buffer (like, when you can jump in 4-5 frames before you land). Maybe next time i'll add thing called Coyote Time.

Anyways, i guess that's all, and yeah, have fun.



0 comments

Loading...

Next up

Ох блять, если бы не over дохуя времени, я бы это не сделал.

Я уже думал забить на проект, но резко был переубеждён самим собой.

Первая тестовая сборка на Java.

Вот вам тысяча чёрных кубиков, которые я отрисовал с помощью Render Batching.

Зачем?

My game in 50 seconds #indiedev #Gamedev #steam

Vasia the cat.

🆕🔥New mechanic! Place wet souls into sponges to cool down scorching terrain and make your way through!

А теперь думайте кому это адресованно.

So, i have added texture batching, and now my fps flew up to 150 (max), and i think i'll also add texture atlases render, to have a simple sprite sheet with sprites in it.

: Список тех кто заслуживает подарка! :D

: List of those who deserve a gift! :D

After messing around with OpenGL i finally drew up a square.