Computer Science Canada Sprite.Show doesn't work with include |
Author: | Alboxas [ Tue Jan 19, 2016 11:33 am ] | ||
Post subject: | Sprite.Show doesn't work with include | ||
What is it you are trying to achieve? Use Sprite.Show with include. What is the problem you are having? Sprite.Show does not allow sprites to load in the included file. Describe what you have tried to solve this problem Everything Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Please specify what version of Turing you are using 4.1.1 |
Author: | Insectoid [ Tue Jan 19, 2016 3:05 pm ] |
Post subject: | RE:Sprite.Show doesn\'t work with include |
Telling us you tried everything doesn't tell us anything. If you've tried everything and nothing has worked then it can't be done. You don't know what everything is, so I really doubt you've tried that. I don't even know what everything is. If you tell us specifically what you've tried though, then we don't waste time suggesting things you've already done. Did Turing give you any specific error messages or did the sprites just not appear on the screen? |
Author: | Alboxas [ Tue Jan 19, 2016 6:50 pm ] |
Post subject: | RE:Sprite.Show doesn\'t work with include |
There are no error messages, the second file runs but the sprites do not load and is unable to be called. I have tried changing the pictures, freeing the character sprite that is declared before the include. I have tried hiding the sprite. The only thing that will allow the included file to properly run is to remove Sprite.Show completely from the first file. I have also tried including another .t file that will do the sprite.show for me from a different directory but it still doesn't work. For some reason, the Sprite.Show conflicts with the code in the KnightFight.t file. |
Author: | Insectoid [ Tue Jan 19, 2016 7:45 pm ] |
Post subject: | RE:Sprite.Show doesn\'t work with include |
Does it work if you manually copy & paste all the files into one big file? |
Author: | Alboxas [ Wed Jan 20, 2016 9:11 am ] |
Post subject: | RE:Sprite.Show doesn\'t work with include |
No it doesn't |
Author: | Alboxas [ Wed Jan 20, 2016 9:13 am ] |
Post subject: | RE:Sprite.Show doesn\'t work with include |
alright i found it, setscreen makes the second program unusable, removing will allow the sprites to load. |
Author: | Alboxas [ Wed Jan 20, 2016 9:22 am ] |
Post subject: | RE:Sprite.Show doesn\'t work with include |
basically, the sprites wont load if the resolution is changed. Weird, but after making the resolutions for both the files the same, the sprites loaded. |
Author: | Insectoid [ Wed Jan 20, 2016 1:03 pm ] |
Post subject: | RE:Sprite.Show doesn\'t work with include |
Did you by chance use 'offscreenonly' in your call to setscreen? Sprites kinda do things their own way and don't play nicely with offscreenonly. I think that's far more likely to be the issue than changing the resolution. |
Author: | Alboxas [ Fri Jan 22, 2016 10:08 am ] |
Post subject: | RE:Sprite.Show doesn\'t work with include |
nope, no offscreenonly, i checked for that a long time ago |