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

#1 2012-05-08 14:27:45

Scatcycle
Scratcher
Registered: 2010-07-22
Posts: 17

Inconsistency with borders/resolution breaks games

The resolution of the downloaded Scratch version is different then the online version. That's two of my games now that have been hindered from this. A sprite shouldn't only work on downloaded rather than online because it can't reach -462 X on the online one. It's extremely annoying. Just check this project: http://scratch.mit.edu/projects/Scatcycle/2522791 . If you download it, it works fine. But online, the sprites cannot reach the edge (due to a difference in resolution) and it destroys the game. I think this should really be fixed.

If you didn't understand that, view this picture: http://i.imgur.com/GtaYl.png.
That .05 really should be fixed.

Last edited by Scatcycle (2012-05-08 14:37:43)

Offline

 

#2 2012-05-08 15:10:05

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Inconsistency with borders/resolution breaks games

Well then, if position is so important in your game, why don't you use virtual positions?

For example, make two variables called xpos and ypos. Use them in place of the blue x an y position blocks entirely. Then, at each draw cycle (or in a forever loop, whichever is more efficient), add this script:

set x to (xpos)
set y to (ypos)

Last edited by LS97 (2012-05-08 15:10:25)

Offline

 

#3 2012-05-08 15:45:40

Scatcycle
Scratcher
Registered: 2010-07-22
Posts: 17

Re: Inconsistency with borders/resolution breaks games

LS97 wrote:

Well then, if position is so important in your game, why don't you use virtual positions?

For example, make two variables called xpos and ypos. Use them in place of the blue x an y position blocks entirely. Then, at each draw cycle (or in a forever loop, whichever is more efficient), add this script:

set x to (xpos)
set y to (ypos)

I fixed it by accommodating both positions, so now it works in both online and downloaded, I just think it's very unnecessary that the two playfields have different resolutions.

Offline

 

Board footer