? "Vanilla" SPSET ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password
[Help Wanted] SmileBASIC Documentation Project

"Vanilla" SPSET

If you've ever wanted to select a sprite by number (SPSET I,X) and not have to wonder if X+1 is X flipped to the nth degree, here you go. SPSET I,X MOD 32*16,FLOOR(X/32)*16,16,16
Author
kenchic
Updated
Rating
4 votes
Categories
Keywords
  • sprite
  • spset
  • alternative
  • formula
6 Comment(s) kenchic kenchic Avatar Taboo I didn't change my avatar for 180 days Website Third Year My account is over 3 years old Website osu! Is Awesome! I love osu! Express Yourself Wow, I finally joined the ranks of the last-pagers. 12Me21 12Me21 Head Admin Second Year My account is over 2 years old Website Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself SPSET I,X MOD 32*16,X DIV 32*16 SPSET I,X MOD 32*16,X>>5<<4 kenchic kenchic Avatar Taboo I didn't change my avatar for 180 days Website Third Year My account is over 3 years old Website osu! Is Awesome! I love osu! Express Yourself o no i got golfed 12Me21 12Me21 Head Admin Second Year My account is over 2 years old Website Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself u just got golfed Sam Sam Amazing Page Hidden Achievements Great Page Hidden Achievements Good Page Hidden Achievements This is cool and useful, but I wish it were worded a bit better so beginners and the like would easily see why this is useful. kenchic kenchic Avatar Taboo I didn't change my avatar for 180 days Website Third Year My account is over 3 years old Website osu! Is Awesome! I love osu! Express Yourself I don't know how I could word it to be easily understandable. :(