Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » level transition
- Remixer2-0
- Scratcher
42 posts
level transition
I can't make the level costume change when you hit the edge more than 1 times. here is code I use:
when green flag clicked
forever
if <touching [edge v] ?> then
broadcast [next level v]
Last edited by Remixer2-0 (Jan. 24, 2022 03:22:21)
- amster11722
- Scratcher
100+ posts
level transition
Can you send your entire project?
when gf clicked
broadcast[WAKE UP!!! v]
when i receive [WAKE UP!!! v]
switch costume to[clothes v]
go to x: [https://scratch.mit.edu/discuss/] y: [Help With Scripts]
- Yusei-Fudo
- Scratcher
1000+ posts
level transition
I can't make the level costume change when you hit the edge more than 1 times. here is code I use:when green flag clicked
forever
if <touching [edge v] ?> then
broadcast [next level v]
Maybe it isn't the full script*
Your script doesn't contain any switch costume blocks
Here's a quick way to do it for a platformer:
forever
if <touching edge?::sensing boolean> then//player
change [Level] by [1]
broadcast [next level]
end
when i receive [next level]//platform
switch costume to (Level)
I'm a decent coder who has a huge passion for coding. I taught myself all the coding skills I have now. And with those skills, I have made some pretty decent projects, check them out! Be sure to ⭐ ❤️ & Follow, too! I have a few pictures below which are actually links. Click on them to take to different projects that I made. Might come in handy. :)
Need a project where you can check to see if you can use someone's camera or not? Here's one:
Need a project to detect when someone has clicked the stop sign? Take a look at this:
Need a project that can point at specific clones, etc? Why not use this:
Need to prank someone? Tell them to click this picture, but also make sure they're signed onto Scratch, otherwise, it doesn't work:
For more of my projects, just click on this picture:
- Remixer2-0
- Scratcher
42 posts
level transition
yeah thanks that workedI can't make the level costume change when you hit the edge more than 1 times. here is code I use:when green flag clicked
forever
if <touching [edge v] ?> then
broadcast [next level v]
Maybe it isn't the full script*
Your script doesn't contain any switch costume blocks
Here's a quick way to do it for a platformer:forever
if <touching edge?::sensing boolean> then//player
change [Level] by [1]
broadcast [next level]
end
when i receive [next level]//platform
switch costume to (Level)
- Discussion Forums
- » Help with Scripts
- » level transition