How do I give the screen little and/or big shake?

From OHRRPGCE-Wiki
Jump to navigationJump to search

You can simulate a tremor or earthquake using map-scrolling plotscript commands. Here are a few example scripts that you can customize for your quaking needs.

script,quake while waiting,ticks=1,begin
  variable(i)
  for(i,0,ticks),do,begin
    pan camera(random(0,3),1,random(1,5))
    wait(1)
  end
end

script,quake while waiting for hero,who=me,begin
  while(hero is walking(who)),do,begin
    pan camera(random(0,3),1,random(1,5))
    wait(1)
  end
end

script,quake while waiting for NPC,who=0,begin
  while(NPC is walking(who)),do,begin
    pan camera(random(0,3),1,random(1,5))
    wait(1)
  end
end

Remember to use camera follows hero after using these scripts to refocus the camera on the leader.

See Also[edit]

Moogle1's Plotscripting Tutorials