Added a function to set particle spawn rate
Added a function to get pixel position for next character in a text string