Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » can anybody help me with this script please? (:
- BitBoyStudios
-
Scratcher
52 posts
can anybody help me with this script please? (:
so i am currently working on a tamagotchi game and i need help with this one script.
I have been making stats like hunger, hygiene, musical taste, and sometime in the future, entertainment and probably not more. What is going to happen is when one of the stats runs to zero, your tamagotchi dies, which is normal. So i did a script that is broadcast (end scene)
but when i play the game, it does not work, can somebody help me? thank you if so.
I have been making stats like hunger, hygiene, musical taste, and sometime in the future, entertainment and probably not more. What is going to happen is when one of the stats runs to zero, your tamagotchi dies, which is normal. So i did a script that is broadcast (end scene)
but when i play the game, it does not work, can somebody help me? thank you if so.
- TheKoolKoder
-
Scratcher
55 posts
can anybody help me with this script please? (:
Can you give me the project link so I can take a closer look?
- BitBoyStudios
-
Scratcher
52 posts
can anybody help me with this script please? (:
i can give you the unfinished product, i sped up the timer so you don't have to wait 1000 seconds, ( i did the math) i will come with the link later
- josueart
-
Scratcher
500+ posts
can anybody help me with this script please? (:
You forgot a forever loop on the stats check, so it only checks if the stats are lower than 0 at the start of the game. Just surround the check script in a forever loop and you're done.
Edit: you should also stop the loop so it doesn't constantly send the message, via the stop this script block.

Edit: you should also stop the loop so it doesn't constantly send the message, via the stop this script block.

Last edited by josueart (Aug. 16, 2023 16:27:54)
- TheKoolKoder
-
Scratcher
55 posts
can anybody help me with this script please? (:
You forgot a forever loop on the stats check, so it only checks if the stats are lower than 0 at the start of the game. Just surround the check script in a forever loop and you're done.
Edit: you should also stop the loop so it doesn't constantly send the message, via the stop this script block.
Yes that is correct, I am just so sorry, I was outside.
- Discussion Forums
- » Help with Scripts
-
» can anybody help me with this script please? (: