Discuss Scratch

0skarian
Scratcher
23 posts

Script broken?

i shared a game named “scratch city” for like 2 months ago, i have updated it a few times and tested it. (everything worked then)
But now for some reason the teleporters dosen't work anymore. (i did not change any script!) It have tried everything but i does not work.
plz can somebody figure this out? ;(

Link to game: https://scratch.mit.edu/projects/131427221/
deck26
Scratcher
1000+ posts

Script broken?

With nearly 300 scripts spread over 50+ sprites it's hard to get any kind of feel for how it works. You have a lot of green flag scripts with forever loops which is generally not a good combination. Much better to have an initialisation stage and only start game play once everything is properly set up.

So help us help you by telling us how to get the problem to appear. If you can identify sprites and scripts that are relevant that may also help.

A good technique to pin down a problem is to work with a copy of the project and gradually delete things (sprites/scripts) while repeatedly testing to see if the problem disappears.
asivi
Scratcher
1000+ posts

Script broken?

0skarian wrote:

i shared a game named “scratch city” for like 2 months ago, i have updated it a few times and tested it. (everything worked then)
But now for some reason the teleporters dosen't work anymore. (i did not change any script!) It have tried everything but i does not work.
plz can somebody figure this out? ;(

Link to game: https://scratch.mit.edu/projects/131427221/
Hi, just increase the width of your teleporters' costumes, let say up to 10pixels.
And better if those are well centered in the paint editor screen, except for special cases(maybe your is special) it is a good practice.

Last edited by asivi (Feb. 5, 2017 20:01:07)

Powered by DjangoBB