GameMaker lerp text position left to right?

S

Shadowblitz16

Guest
can someone help me figure out how to lerp my text and value positions?

basicly I have 3 major variables that I use
Code:
- left      // the left position of the text when its enabled but not selected
- right     // the right position of the text when its enabled and selected
- width     // the width in pixels of of the text
- distance  // the distance that the text slides out past text_left when disabled
this is what my code structure looks like
Code:
text_x  = lerp(text_l,  text_r  - text_width,  image_index / image_number); //lerp label text from left to right
value_x = lerp(value_r, value_l + value_width, image_index / image_number); //lerp value text from right to left
 
Top