//CREATE EVENT amt=10;//Change this to change the amount of shaking
//STEP EVENT if amt>0{view_angle[0]=-amt+(2*random(amt));//Shake the view_angle... amt-=0.5;//Change this to make longer/shorter shakes... }edited version of the code. Put it in an object that does not get deleted like the player.