Discuss Scratch

BrokeHustler980
Scratcher
17 posts

The backdrop doesn't change

when i get enough kills to change to the next level the backdrop changes to the first one but doesn't cycle to the next ones.

https://scratch.mit.edu/projects/905167226/editor/

Last edited by BrokeHustler980 (Nov. 6, 2023 12:34:53)

deck26
Scratcher
1000+ posts

The backdrop doesn't change

Which script/backdrops do you mean? You shouldn't need a forever loop around the if kills=1 in the Stage area - surely you only need to broadcast Level2 once?
BrokeHustler980
Scratcher
17 posts

The backdrop doesn't change

deck26 wrote:

Which script/backdrops do you mean? You shouldn't need a forever loop around the if kills=1 in the Stage area - surely you only need to broadcast Level2 once?

I removed the forever loop and it didn't broadcast the level 2 message
deck26
Scratcher
1000+ posts

The backdrop doesn't change

BrokeHustler980 wrote:

deck26 wrote:

Which script/backdrops do you mean? You shouldn't need a forever loop around the if kills=1 in the Stage area - surely you only need to broadcast Level2 once?

I removed the forever loop and it didn't broadcast the level 2 message
Instead of the forever/if combination use a wait until kills=1. Obviously if you just remove the loop the if block sees kills as 0 and the script just eands.
BrokeHustler980
Scratcher
17 posts

The backdrop doesn't change

deck26 wrote:

BrokeHustler980 wrote:

deck26 wrote:

Which script/backdrops do you mean? You shouldn't need a forever loop around the if kills=1 in the Stage area - surely you only need to broadcast Level2 once?

I removed the forever loop and it didn't broadcast the level 2 message
Instead of the forever/if combination use a wait until kills=1. Obviously if you just remove the loop the if block sees kills as 0 and the script just eands.

Thank you brother this worked may Allah guide you
Igus1906
Scratcher
29 posts

The backdrop doesn't change

when green flag clicked
forever
if <[Kills (MUST BE A VARIABLE..)] = [Any Amount]> then
broadcast [Background Change v]

end

for a different sprite or the background:

when I receive [Background Change v]
switch costume to [Other Background v]

Last edited by Igus1906 (Nov. 7, 2023 21:04:04)

-FireSpeed-
Scratcher
2 posts

The backdrop doesn't change

yoo i have a question. i am doing a question where i have to do put the correct answer for the different background to show, however, when i put the correct answer, nothing works… even if i out the non-correct answer, nothing still happens. what should i do??
link here: https://scratch.mit.edu/projects/1105560086/editor/
ametrine_
Scratcher
1000+ posts

The backdrop doesn't change

-FireSpeed- wrote:

yoo i have a question. i am doing a question where i have to do put the correct answer for the different background to show, however, when i put the correct answer, nothing works… even if i out the non-correct answer, nothing still happens. what should i do??
link here: https://scratch.mit.edu/projects/1105560086/editor/
please make a new topic for this, instead of posting on old ones
23ler8
New Scratcher
1 post

The backdrop doesn't change

HI
cheddargirl
Scratch Team
1000+ posts

The backdrop doesn't change

Closed due to necroposting and thread hijacking. Please make a new thread for getting help with scripts instead of bumping up old threads that are unrelated.

Powered by DjangoBB