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

#1 2007-07-25 13:01:19

yep123
Scratcher
Registered: 2007-07-03
Posts: 3

scrolling "platform overlapping" problem

HELP WANTEND Althought the scrolling works after my 7th try, I still have some platform "overlapping", i.e. every next platform starts to early.

Can you help?


My project page is http://scratch.mit.edu/projects/yep123/24498

Thnx

Yep123

Offline

 

#2 2007-07-25 17:35:48

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: scrolling "platform overlapping" problem

The platforms are overlapping just because of their position. Now the way you have it is when key left or right pressed move the platforms. If you do this the platforms may not move correctly and they may shift out of place.  To fix this set their x position forever to a variable called platforms and when the left or right keys are pressed the variable changes making the platforms x position equal to the variable plus their distance from the other platforms which are multiples of 480. I know this probably sounds confusing so I went ahead and fixed your project so you can download it.

Heres your fixed project http://scratch.mit.edu/projects/archmage/24624


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2007-07-26 02:57:04

yep123
Scratcher
Registered: 2007-07-03
Posts: 3

Re: scrolling "platform overlapping" problem

Thanks for your help archmage!

You Rock!!

yep123

Offline

 

Board footer