? Sprite Bug (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Sprite Bug

  • #1 ✎ 46 thou_fatGAMER12 Okay, I have been having an issue (which is problably common and i just dont know) where the sprites just don't appear on screen. I dont know if it's an issue with the code, if it's an issue with the spriteset, or it's just a random bug, but i need to have this fixed or i can't continue what im making which is of course you know: Plants V.S. Zombies 2 LOLimportant to me so yea it's problably something simple I just don't know yet, but i'd like some help anyways. Posted Edited by thou_fatGAMER12
  • #2 ✎ 34 S_DE_Solutions Avatar Block I didn't change my avatar for 30 days. Website Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Try to make sure, the Sprite-Position is inside the lookable area of the screen and the Sprite itself is not hide or behind a other Sprite. But without the Code or a Key it is impossible to realy help you debuging. Posted
  • #3 ✎ 46 thou_fatGAMER12 Well, the only other thing on screen is just text saying "_____'s trip to anciet egypt" at the top of the screen. and I used SPSET 0,464,48,16,16 (the numbers go with my sprite set i created) and after wards used SPOFS 0, 90, 0, 1000 and After That I i used SPSCALE 0,1,1 so? it may be me, but? Posted Edited by thou_fatGAMER12
  • #4 ✎ 46 thou_fatGAMER12 I'm this annoyed! Yes it's a joke. Posted Edited by thou_fatGAMER12
  • #5 ✎ 34 S_DE_Solutions Avatar Block I didn't change my avatar for 30 days. Website Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Youre code should work. So there are possible Bugs later in Code: - The Sprite will be hide (try SPSHOW 0 to fix) - The Area of picture you are using is empty - The code is not Execute - The Main loop create the Bug: - move/hide/delete/colored the Sprite or don't refresh the display or don't use the code or ... ( Edit: if you have execute Samples before you are using yore Code it is possible that the Sprite was hide this way. ) Posted Edited by S_DE_Solutions
  • #6 ✎ 46 thou_fatGAMER12 Yea thanks, I'll try these Methods as soon as my 3DS dies and then gets recharged. it kinda froze while watching youtube. but anyways thanks. Posted
  • #7 ✎ 327 Minxrod Third Year My account is over 3 years old Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Video Games I like to play video games! Hobbies It might also be that the sprite is behind something, because SPOFS id, x, y, 1000 will set your sprite behind almost everything. Posted
  • #8 ✎ 46 thou_fatGAMER12
    It might also be that the sprite is behind something, because SPOFS id, x, y, 1000 will set your sprite behind almost everything.
    yea I said the screen was clear except text at the top. so it shouldn't be the problem
    Posted
  • #9 ✎ 34 S_DE_Solutions Avatar Block I didn't change my avatar for 30 days. Website Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Update: If you are using SPSET ... 'and then XSCREEN 'or ACLS all sprite will be reseted and the sprite isn't set anymore. Posted Edited by S_DE_Solutions
  • #10 ✎ 46 thou_fatGAMER12
    Update: If you are using SPSET ... 'and then XSCREEN 'or ACLS all sprite will be reseted and the sprite isn't set anymore.
    Well. Oh. OH. OOOHHH. Thank you. ;-) so THAT was the problem. Wow, how stupid could I be. I was so focused on getting the bottom screen to work that no didn't realize it would reset the top screen. Thanks alot. I'm so dumb.
    Posted
  • #11 ✎ 994 random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Video Games I like to play video games! Hobbies
    Update: If you are using SPSET ... 'and then XSCREEN 'or ACLS all sprite will be reseted and the sprite isn't set anymore.
    Well. Oh. OH. OOOHHH. Thank you. ;-) so THAT was the problem. Wow, how stupid could I be. I was so focused on getting the bottom screen to work that no didn't realize it would reset the top screen. Thanks alot. I'm so dumb.
    Not as dumb as when I wondered why an IF statement caused a syntax error, and it was because I forgot to add THEN I will never make that mistake again hopefully
    Posted
  • #12 ✎ 46 thou_fatGAMER12 Hey cause I'm la oof when it comes to coding, and I'm too lazy to search up anwser for like 10 minutes, i want to know, why can't I load more than one sprite on screen? I can't continue (just like the other problem) until i get an anwser so i can fix it. And im lazy so yea. #LAZY Posted
  • #13 ✎ 994 random_god Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength QSP Contest 1 Contest Participant I participated in the first SmileBASIC Source QSP Contest! Video Games I like to play video games! Hobbies
    Hey cause I'm la oof when it comes to coding, and I'm too lazy to search up anwser for like 10 minutes, i want to know, why can't I load more than one sprite on screen? I can't continue (just like the other problem) until i get an anwser so i can fix it. And im lazy so yea. #LAZY
    Well you need to change the management number for the sprite, because using SPSET 0,SPRITE DEFINITION twice just makes the same sprite twice. The first number is which sprite you want to add/modify, while the second number is what the sprite looks like. So, to make a new sprite that doesn't replace one, you can just change the first number. Using SPSET 0,0 twice will replace the first use. So using a different management number, you can avoid that with something like SPSET 1,0 or SPSET 263,0, or whatever management number. It may be a good idea to organize these, though, based on what your program needs, like 0-199 projectiles, 200-299 UI stuff, etc. But any organisation style works as long as it fits what your program needs.
    Posted
  • #14 ✎ 46 thou_fatGAMER12
    Hey cause I'm la oof when it comes to coding, and I'm too lazy to search up anwser for like 10 minutes, i want to know, why can't I load more than one sprite on screen? I can't continue (just like the other problem) until i get an anwser so i can fix it. And im lazy so yea. #LAZY
    Well you need to change the management number for the sprite, because using SPSET 0,SPRITE DEFINITION twice just makes the same sprite twice. The first number is which sprite you want to add/modify, while the second number is what the sprite looks like. So, to make a new sprite that doesn't replace one, you can just change the first number. Using SPSET 0,0 twice will replace the first use. So using a different management number, you can avoid that with something like SPSET 1,0 or SPSET 263,0, or whatever management number. It may be a good idea to organize these, though, based on what your program needs, like 0-199 projectiles, 200-299 UI stuff, etc. But any organisation style works as long as it fits what your program needs.
    thanks like ALOT. (an idiot, I'm am)
    Posted