? Placing multiple sprites in a row (Page 1) ● SmileBASIC Source Forums

Sign In

*Usernames are case-sensitive
Forgot my password

Placing multiple sprites in a row

  • #1 ✎ 4 OhBoy Video Games I like to play video games! Hobbies Drawing I like to draw! Hobbies Avatar Taboo I didn't change my avatar for 180 days Website So for a dating simulator game I had worked on for valentines day, I decided to make a custom font for the game. Seeing that font tiles were too small for my font, I had created them as sprites instead. My code looks a bit like this: SPSET 13,72 SPOFS 13,10,156,-100 SPSET 14,69 SPOFS 14,18,156,-100 SPSET 15,76 SPOFS 15,26,156,-100 SPSET 16,76 SPOFS 16,34,156,-100 SPSET 17,79 SPOFS 17,42,156,-100 Is there a way to place multiple sprites in a row more efficiently? Also, is there a way to use larger fonts on the font page? Posted
  • #2 ✎ 229 TheV360 Pokemon Is Awesome! I love Pokemon! Express Yourself First Day Joined on the very first day of SmileBASIC Source Website Night Person I like the quiet night and sleep late. Express Yourself You could make this code smaller by using FOR loops:'Set up sprites SPSET 13,72 SPSET 14,69 SPSET 15,76 SPSET 16,76 SPSET 17,79 'Put sprites in correct place FOR I=0 TO 4 SPOFS I+13,10+(I*8),156,-100 NEXT IIf you want larger fonts, you can use the GPUTCHR command, like this:GPUTCHR 0,0,"BIG TEXT!!!",2,2,#WHITE GPUTCHR 0,32,"WIDE TEXT!!!",2,1,#WHITE GPUTCHR 0,64,"TALL TEXT!!!",1,2,#WHITE Posted
  • #3 ✎ 157 RGamesOffical Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Minecraft Is Awesome! I love Minecraft! Express Yourself Video Games I like to play video games! Hobbies If you want a different font, use Font Edit or FONTDEF Posted