Discuss Scratch

90999988
Scratcher
51 posts

How do i make a sprite fall then when they touch the bottom they come out of the top That loops

SO i am creating a game called “Falling Up” Its a game where you have to doge blocks and see how big of a score you can get But i cant figure out a way that i can make so a sprite touches the bottom and comes out of the top again or basically random sprites (other than the cat) Falls and they got to doge it.
This system relies on my entire game so Can you please help me?
Masterscratch1117
Scratcher
500+ posts

How do i make a sprite fall then when they touch the bottom they come out of the top That loops

Of course, I can help you! use this script:
whenclickedforeverchangeyby-10ifyposition<-179thensetyto180

Last edited by Masterscratch1117 (Feb. 19, 2024 14:50:31)

godyyyy
Scratcher
17 posts

How do i make a sprite fall then when they touch the bottom they come out of the top That loops

Or you could use an invisible sprite
Masterscratch1117
Scratcher
500+ posts

How do i make a sprite fall then when they touch the bottom they come out of the top That loops

godyyyy wrote:

Or you could use an invisible sprite
yes, but this is a simple drag-and-drop solution, the invisible sprite would be slower to implement
90999988
Scratcher
51 posts

How do i make a sprite fall then when they touch the bottom they come out of the top That loops

Thank you @Masterscratch1117 This is really useful but do i implement it in each sprite?
also i kinda need it to spawn in different places
You will be credited

Last edited by 90999988 (Feb. 19, 2024 14:58:29)

Masterscratch1117
Scratcher
500+ posts

How do i make a sprite fall then when they touch the bottom they come out of the top That loops

90999988 wrote:

Thank you @Masterscratch1117 This is really useful but do i implement it in each sprite?
also i kinda need it to spawn in different places
You will be credited
if you want the x to change to a random spot when falling then add a
setxtopickrandom-240to240

Powered by DjangoBB