This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-04-15 21:42:10

RyToasterTroll
Scratcher
Registered: 2009-03-13
Posts: 29

I'm going to go insane, someone help me

As you don't know, I have a series of games called Redazor, I made the claim that these are the hardest games on all of scratch and I doubt anyone will ever manage to prove me wrong. I was in the middle of perfecting my double jump script when I noticed something was wrong, my respawn system was completely  broken.

Here is how it works:

Once The player touches the goal his position is saved and then background changes, then when ever he dies he goes back to the saved position. I made this using a broadcast command and 2 variables, titled SY and SX.


It is a simple system that works fine , but now the player will only respawn in the position Y 0 and X 0, this means the game stopped recognizing the variables. I had to export the sprite many times to make the double jump system and I think that is what broke the variables, I still have a copy of the working sprite and if you want I will upload that one so anyone willing to help me can compare the scripts. I uploaded the broken project here: http://scratch.mit.edu/projects/RyToasterTroll/490709

Look out these scripts are very VERY confusing, but please try to see what is wrong.


TRRRRRROOOOOOLLLLLLLLLLLLLLLLLLLL -poof-

Offline

 

#2 2009-04-16 03:47:57

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: I'm going to go insane, someone help me

its a common bug, simply replace all the variables called sx from the ones in the variables tab. it may seem stupid and useless, but its necessary

Offline

 

#3 2009-04-16 04:51:16

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: I'm going to go insane, someone help me

Try saving the project after importing a sprite or another project.  That often straightens out problems with variables.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2009-04-16 20:59:16

RyToasterTroll
Scratcher
Registered: 2009-03-13
Posts: 29

Re: I'm going to go insane, someone help me

Never mind I saved my project and went away, came back to the project later and it worked fine, the variable replacement trick is useful as well but I do not think it should be used until it is absolutely necessary.


Problem solved


TRRRRRROOOOOOLLLLLLLLLLLLLLLLLLLL -poof-

Offline

 

#5 2009-04-16 21:07:15

DsGameMaker
Scratcher
Registered: 2009-04-14
Posts: 89

Re: I'm going to go insane, someone help me

Thank God!

Offline

 

Board footer