Home Artists Posts Import Register

Content

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

Files

GameMaker Studio 2: Complete Platformer Tutorial (Part 8: Screenshake)

▶ Support my work: https://www.patreon.com/shaunjs ▶ Assets http://www.shaunspalding.co.uk/files/PlatformerAssets.zip ▶ Playlist: https://www.youtube.com/playlist?list=PLPRT_JORnIupqWsjRpJZjG07N01Wsw_GJ A bit shorter this time around. New parts to this series released every other Friday. (Except when sometimes it isn't.)

Comments

Anonymous

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);

Anonymous

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

shaunjs

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!