Sometimes a sprite absolutely does not do what the script says. I check and double-check to see if another script is preventing the script from being followed, and it all checks out. Is there a reason the sprite won't perform the script?
Offline
yeah im having trouble with that to it gets me frustrated X< its really hard to make games with that bug XP
Offline
pipchirisu wrote:
yeah im having trouble with that to it gets me frustrated X< its really hard to make games with that bug XP
Combine that with the text glitch and its impossible to make a proper game.
Offline
what is the text glitch
Offline
the text glitch is when you put all the scripts you want together, but then the words
on the blocks dissapear, also if you save the project on a file it will erase the files name.(good thing it doesn't happen to me).
Last edited by Daggart (2009-01-04 14:57:24)
Offline
pipchirisu wrote:
yeah im having trouble with that to it gets me frustrated X< its really hard to make games with that bug XP
Yeah that glitch gets me mad!
Offline
If someone would post a project with the problem I would check it out for you
Offline
rjenkins wrote:
Icant get the cat to move a step
Have you tried building a script that will make the cat go...something like this:
[blocks]
<when green flag clicked>
<forever>
<move( 5 )steps>
<if on edge, bounce>
<end>
[/blocks]
Then, click on the Green Flag and the cat should move.
Offline
...Or sometimes Scratch lags, like mine.
Offline
sailorgrl wrote:
I have my script so it is like this but Scratch isn't following the code.
<when I receive[ add energy
<change{ energy }by( 50
IT keeps running as if I put forever around it!
Take a look at the conditions you have set up for when the broadcast message is sent. You may find that you have the broadcasting taking place in a loop so the script receiving the broadcast is acting like it is in a loop as well.
Offline
Looks like you were right! How can I fix it so my project isn't messed up completely
here is a link to my project:(the sprite finish line contains the script) http://scratch.mit.edu/projects/sailorgrl/418694
Last edited by sailorgrl (2009-02-16 09:52:26)
Offline
sailorgrl wrote:
Looks like you were right! How can I fix it so my project isn't messed up completely
here is a link to my project:(the sprite finish line contains the script) http://scratch.mit.edu/projects/sailorgrl/418694
Okay, you are trying to set up something that will happen just once. So a loop is maybe not the best way to go here. Rather, try using the "Wait Until" block. Something like
[blocks]
<when green flag clicked>
<wait until> << <( <{ laps }> <=> 3 )> <and> <( <{ timer }> <<> 206 )> >>
<broadcast[ add energy
[/blocks]
might work. If will be set up when the project starts and trigger just once (at most, it may not trigger at all if the conditions aren't met).
Offline
I have another problem. I imported sprites from a previous scratch file and now they won't follow the code. I even tried dragging the sprite on top of the other sprite and it would not work! Here is my code: <if><touching[ sprite 22
<change{ checkpoints }by( 1
Last edited by sailorgrl (2009-02-19 20:48:20)
Offline
sailorgrl wrote:
I have another problem. I imported sprites from a previous scratch file and now they won't follow the code. I even tried dragging the sprite on top of the other sprite and it would not work! Here is my code: <if><touching[ sprite 22
<change{ checkpoints }by( 1
I no longer have this problem, however now the number of laps changes when I have gone through only one checkpoint even though I have it set up like this:
<forever>
<if><( <{ checkpoints }> <=> 2 )>
<change{ laps }by( 1
<set{ checkpoints }to( 0
Offline
Daggart wrote:
the text glitch is when you put all the scripts you want together, but then the words on the blocks dissapear, also if you save the project on a file it will erase the files name.(good thing it doesn't happen to me).
That (or something like it) happened while I was working on my Elviad RPG. It never happened before, and it seemed to do it more when I saved, edit project notes, switched to another window, or left it unattended too long.
(P.S. Is this the reason that mysterious file "tmp0" suddenly appeared in the folder I saved it to?)
Offline
sailorgrl wrote:
sailorgrl wrote:
I have another problem. I imported sprites from a previous scratch file and now they won't follow the code. I even tried dragging the sprite on top of the other sprite and it would not work! Here is my code: <if><touching[ sprite 22
<change{ checkpoints }by( 1I no longer have this problem, however now the number of laps changes when I have gone through only one checkpoint even though I have it set up like this:
<forever>
<if><( <{ checkpoints }> <=> 2 )>
<change{ laps }by( 1
<set{ checkpoints }to( 0
any chance that this was imported as well? Try saving it, because when you import variables, they get glitched, and they need to be replaced with the exact same variable from the variable section, or (according to P2S, as i haven't tried it myself) save it
Offline
SmartIrishKid wrote:
That (or something like it) happened while I was working on my Elviad RPG. It never happened before, and it seemed to do it more when I saved, edit project notes, switched to another window, or left it unattended too long.
(P.S. Is this the reason that mysterious file "tmp0" suddenly appeared in the folder I saved it to?)
That happened to me too. It's weird! The file could (I don't know) be corrupt.
I had all these "tmp"s in my old file:
tmp0
tmp1
tmp2
tmp3
I deleted 'em.
Last edited by scratchisthebest (2009-04-16 18:31:07)
Offline