Platformer Part 8 - Screenshake
🕑 Added 2017-10-11 18:39:17 +0000 UTC Ended up around 17 minutes so I kept this one focused(ish).Live on Friday as standard! Speaking of Friday I'll be away doing a talk at the GameMaker Meetup in London. If you're about you can come hang: https://www.eventbrite.co.uk/e/unofficial-gamemaker-meetup-2-tickets-38281863083
I'll be recording the talks same as last time. =)
-S
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?