Discuss Scratch

cohenrigg
Scratcher
9 posts

how do i teleport my goal in a scratch platformer

in my scratch game you complete a level/ go to the next level by reaching a goal sprite. the problem with this is that the sprite stays in the same spot when you get past the first level. how do i make the goal teleport to a diffrent place? basically when you reach the goal and teleport to the next level how do i make the goal teleport so that the goal works for all the levels in my game. if you know what i could do pls let me know. thanks
Rangnarok
Scratcher
29 posts

how do i teleport my goal in a scratch platformer

For the player put:
when green flag clicked
set [Level] to [1]
forever
if <touching [goal] ?> then
change [Level] by (1)
wait (0.5) secs
end
end
For the goal put something like:
when green flag clicked
forever
if <(Level) = [1]> then
go to x: (whatever x you want) y: (whatever y you want)
else
if <(Level) = [2]> then
go to x: (whatever x you want for lv2) y: (whatever y you want for lv2)
else
if <(Level) = [3]> then
go to x: (whatever x you want for lv3) y: (whatever y you want for lv3)
else

end
end
end
end

when green flag clicked
forever
play [Minecraft]
play [Hollow Knight]
play [Undertale]
play [Deltarune]
play [TLoZ BotW]
play [TLoZ TotK]
play [It Takes Two]
play [Geometry Dash]
play [Terraria]
code [Scratch]
code [C#]
end

when [russia] > [ukraine]
if <[russia] invades [ukraine] ?> then
repeat until <([state] of[russia]) = [peace]>
̶p̶e̶n̶ foot down
replace item [state] of [putin] with [snitch]
globally [protest]
end
end

RUUUUNNN ITS THE EVIL KUMQUATS













You didnt need to scroll all the way down here btw…
cohenrigg
Scratcher
9 posts

how do i teleport my goal in a scratch platformer

Hello
Thanks for the help with my game however the code didnt work and the game is working the exzact same. thanks for the tip of what i could do

Powered by DjangoBB