I need some help with another project. Okay I am making a simple project using scrollX. But I don't know how to hide the objects in the first place. The player can easily see the objects upcoming before it even appears to them! How can I hide the objects until the player reaches that point and then those objects will show?
Offline
A black border is one way, yes. Another way is to figure out the range of scrollx values for which each sprite should be visible, and then make a script for each that hides it when scrollx is not within that range.
Offline
I'm not sure what "scrollX" is, but you can control the visibility of sprites by just hiding them:
If <[abs (xposition)]>235
Hide
Else
Show
You may have to experiment with the value for how far your sprite can go efore you want it to disappear. Put the code in a forever loop - a short "wait" statement is OK in that loop too.
Offline
Harakou wrote:
A black border is one way, yes. Another way is to figure out the range of scrollx values for which each sprite should be visible, and then make a script for each that hides it when scrollx is not within that range.
I think I could show the scrollX and then set a position of Scrollx to make the sprites that are involuntarily showing. Like showing scrollX, I could play it and see it, but I already posted it and am too lazy to fix it .
Offline
you can see how to do it in my project.
http://scratch.mit.edu/projects/KobyStudios/2003639
Offline
EdnaC wrote:
I'm not sure what "scrollX" is, but you can control the visibility of sprites by just hiding them:
If <[abs (xposition)]>235
Hide
Else
Show
You may have to experiment with the value for how far your sprite can go efore you want it to disappear. Put the code in a forever loop - a short "wait" statement is OK in that loop too.
I use 460
Offline