RunFaps
shaunjs
shaunjs patreon

Platformer Part 8 - Screenshake

🕑 Added 2017-10-11 18:39:17 +0000 UTC
Platformer Part 8 - Screenshake

Comments

Sure, that should work!

It looks to me like instead of using a fixed buffer to keep the camera from showing past the edge of the map during screen shake, you can use the shake_remain variable. That way you don't lose the ability to see the edges of your map when screen shake isn't happening. Instead of: x = clamp(x,view_w_half+buff,room_width-view_w_half-buff); y = clamp(y,view_h_half+buff,room_height-view_h_half-buff); You can use: x = clamp(x,view_w_half+shake_remain,room_width-view_w_half-shake_remain); y = clamp(y,view_h_half+shake_remain,room_height-view_h_half-shake_remain);

Hey, sorry I missed this. The assets I used should be linked in the YouTube video description. I wouldn't recommend using these in your own projects though, have a go at making your own!

Can you give links to the images you use in your videos?


More Creators