This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » FAQ
  •  » Why Don't My Projects Work Correctly Online?

#126 2011-12-17 15:11:44

mcpNOVA
Scratcher
Registered: 2011-12-05
Posts: 100+

Re: Why Don't My Projects Work Correctly Online?

Thanks paddle, this was really helpful.  big_smile


http://i43.tinypic.com/n5fqcz.jpg

Offline

 

#127 2011-12-19 17:39:22

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: Why Don't My Projects Work Correctly Online?

I was wondering... Are these problems fixed if you play a Scratch project in the new Flash player?  hmm


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

#128 2011-12-21 12:08:09

reemalbassam
New Scratcher
Registered: 2011-12-21
Posts: 1

Re: Why Don't My Projects Work Correctly Online?

When I start the game and click on level 1 the things that are supposed to broadcast & hide dont appear/disappear. And I cant move anything. On scratch it works can someone help me please? I tried changing up the scripts to try to make things work but I've had no improvement

Offline

 

#129 2011-12-28 15:17:32

Puppiepaws
Scratcher
Registered: 2011-10-11
Posts: 7

Re: Why Don't My Projects Work Correctly Online?

I have flash though!  sad

Offline

 

#130 2012-03-16 11:37:35

chanmanpartyman
Scratcher
Registered: 2011-05-30
Posts: 500+

Re: Why Don't My Projects Work Correctly Online?

So would any mathematical error not effect the online performance. I always have to add a (x)+(.0000001) to an equation either involving number/variable if the variable can be zero or (sqrt of)[abs v] of(variable) if the variable can be <1. You stated the division by zero is not affected, but what about square root?  neutral

Last edited by chanmanpartyman (2012-03-30 22:05:48)

Offline

 

#131 2012-04-01 13:24:23

ty44
Scratcher
Registered: 2011-02-05
Posts: 57

Re: Why Don't My Projects Work Correctly Online?

i have a project that doesn't work online. check it out. i dunno what the problem is.

when gf clicked
repeat until <(love-its) > [9000]>
 go to [my projects]
 wait until <(love-it button) = [clicked]>
 change [love-its] by (1)
end
say [Yey!] for (2) secs


http://t3ak.roblox.com/07ffa69f8ced34c7220abf1a8008c1d1 Mario Kart OBSESSION!

Offline

 

#132 2012-04-28 23:11:18

darthvader111
Scratcher
Registered: 2010-03-12
Posts: 45

Re: Why Don't My Projects Work Correctly Online?

Try the new Flash player! It comes with Turbo Mode too!

Offline

 

#133 2012-06-04 17:52:32

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Why Don't My Projects Work Correctly Online?

On version 39 of the Java Player, the

change [color v] effect by ()
affects the hue of the color white, changing its shade. If the color effect of the Scratch Cat is set to 100, for example, the color white is slightly tinted cyan-blue.


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#134 2012-06-04 17:57:22

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Why Don't My Projects Work Correctly Online?

Paddle2See wrote:

walrusninja wrote:

I'm working on a gun simulation. It works fine in Scratch, but I don't understand why it doesn't work online. I'll show you an example with 2 sprites and their code.


Sprites: ammo1, tnt (size: 60x60, location: x -1, y -111)


ammo1 code:

when [space] key pressed
if <touching [sprite2]?>
change size by {-30}
hide
play sound [M1 Garand Single]
wait {0.25} secs
go to [gatlinggun]
show
change y by {9}
change x by {30}
glide {0.08} secs to x: {0} y:{-110}
if <touching [tnt]?>
  hide
  stop script
else
  glide {0.06} secs to x: {80} y: {-110}
  ......


tnt code:

when [space] key pressed
wait until <touching [ammo1]?>
switch to costume [costume2]
wait {0.1} secs
switch to costume [costume3]
wait {0.1} secs
switch to costume [costume4]
wait {0.2} secs
hide
stop script


According to the interaction between the code, when ammo1 touches tnt, tnt goes into a costume animation, which is an explosion. That works in the program, not not online. Can someone help?

You might be hiding Ammo before the tnt has had a chance to sense it.  Timing works differently online than in the native Scratch environment.  It would be much safer to just have one sprite detect the collision and have it send a Broadcast message to alert the other sprite, rather than having each sprite try to sense separately.

No such block exists yet.


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#135 2012-06-04 18:03:10

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Why Don't My Projects Work Correctly Online?

Paddle2See wrote:

cruelty247 wrote:

ummm sorry if this is spamming but why in my project advancedcombat v1  you fall through the ground online (the sensing works offline)

I would try increasing the thickness of the purple line that you are using for a bottom touching sensor.  You currently have it a single pixel wide and then the costume is reduced to 55%...it could be that the online player is rounding that off to zero pixels for the display.  Try doubling the thickness and see if that helps.

Java can't round numbers properly.


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#136 2012-06-08 14:48:18

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Why Don't My Projects Work Correctly Online?

Thanks for the guide Paddle!


Why are the secret organizations getting all the attention?  mad

Offline

 

#137 2012-06-19 22:53:20

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Why Don't My Projects Work Correctly Online?

DsGameMaker wrote:

If only we were in a world in which scratch projects react the same way online and offline!

Scratch 2.0 will be like that.


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#138 2012-08-25 15:58:06

TheGuy131312
New Scratcher
Registered: 2012-01-02
Posts: 51

Re: Why Don't My Projects Work Correctly Online?

3sal2 wrote:

DsGameMaker wrote:

If only we were in a world in which scratch projects react the same way online and offline!

Scratch 2.0 will be like that.

i sure hope so

Offline

 

#139 2012-12-31 11:24:38

minecraftpe123
Scratcher
Registered: 2012-11-18
Posts: 100

Re: Why Don't My Projects Work Correctly Online?

I actually found a great performance increase in using the in browser ver. compared to the download ver. . You have to remember that if your project is running slow in the download of scratch it WILL run faster online. On the other hand though if it runs fast offline it will run unbelievably fast in browser. The computer in use also can change how a project runs in browser so if you are running a slow PC, it will be faster on a greater PC.
Hope this helped,
                         MINECARFTPE123

Offline

 

#140 2013-03-23 05:52:07

newnewfew
Scratcher
Registered: 2013-02-23
Posts: 68

Re: Why Don't My Projects Work Correctly Online?

reemalbassam wrote:

When I start the game and click on level 1 the things that are supposed to broadcast & hide dont appear/disappear. And I cant move anything. On scratch it works can someone help me please? I tried changing up the scripts to try to make things work but I've had no improvement

You can only move things around in Scratch without script.


It's contest time!
http://scratch.mit.edu/projects/newnewfew/3218957

Offline

 

#141 2013-04-18 13:10:30

Scratch12300
New Scratcher
Registered: 2013-04-13
Posts: 38

Re: Why Don't My Projects Work Correctly Online?

How do you program a password?

when gf clicked
repeat until <(entered) = (password)>
ask [password?] and wait
if <(entered) = (password)>
say [Correct!] for (2) secs
end
else
say [Incorrect!] for (2) secs
end
end
broadcast [Access Granted v]
:-)
Then use the:
when I receive [Access Granted v]
For what the sprites or stage do after the correct password is inserted.
(ROFL) ?

Offline

 

#142 2013-04-28 12:39:15

kieran1000
Scratcher
Registered: 2013-02-06
Posts: 43

Re: Why Don't My Projects Work Correctly Online?

bosox397 wrote:

No not those hide show blocks. The hide variable/show variable blocks. also loudness doesn't work onliine

true when I played a project with volume on it the volume didn't change

Offline

 
  • Index
  •  » FAQ
  •  » Why Don't My Projects Work Correctly Online?

Board footer