Advertisement
Shubhra_Sarker

obj_char

Aug 24th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. #****************************************************
  2. # Author:
  3. # Ivo van der Marel
  4. #
  5. # Works through obj_text.
  6. #****************************************************
  7.  
  8. sprite_sheet = sprite_new('spr_font', 4, 3)
  9.  
  10. chars = []
  11.  
  12. chars[0] = animation_new(sprite_sheet, 0, 0, 1)
  13. chars[1] = animation_new(sprite_sheet, 0, 1, 2)
  14. chars[2] = animation_new(sprite_sheet, 0, 2, 3)
  15. chars[3] = animation_new(sprite_sheet, 0, 3, 4)
  16. chars[4] = animation_new(sprite_sheet, 0, 4, 5)
  17. chars[5] = animation_new(sprite_sheet, 0, 5, 6)
  18. chars[6] = animation_new(sprite_sheet, 0, 6, 7)
  19. chars[7] = animation_new(sprite_sheet, 0, 7, 8)
  20. chars[8] = animation_new(sprite_sheet, 0, 8, 9)
  21. chars[9] = animation_new(sprite_sheet, 0, 9, 10)
  22. chars[10] = animation_new(sprite_sheet, 0, 10, 11)# '-' symbol
  23. chars[11] = animation_new(sprite_sheet, 0, 11, 12)# empty
  24.  
  25. char = 11
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement