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

#1 2011-10-25 23:14:23

aln2011
New Scratcher
Registered: 2011-09-19
Posts: 1

Help me! Scroll Y

I've been failing miserably at creating a game where I have a character (a dot) hops up to different platforms.
I would like the main character to fall back to a green ground when it is not jumping,
also, the dot sits below the viewing frame as the player scrolls upwards, how can I make it stay in viewing range?

Please help!
The game is on my page, aln2011 and it's called "honors game"

Offline

 

#2 2011-10-25 23:32:43

Sidharth
Scratcher
Registered: 2007-12-14
Posts: 100+

Re: Help me! Scroll Y

*coughallaboutscratchcough*

Well, the falling down thing is simple:

if <not touching color [green]>
   [insert however you want the character to move down]
else
   [do nothing] OR [move up 1]
end_if

I don't really get what the other issue is.


http://www.danasoft.com/citysign.jpg

Offline

 

#3 2011-12-23 14:07:25

andre_pa
Scratcher
Registered: 2011-12-22
Posts: 3

Re: Help me! Scroll Y

see my projects scrolling cat.
later, I'll try to tie it to your project

Offline

 

#4 2011-12-23 15:16:52

andre_pa
Scratcher
Registered: 2011-12-22
Posts: 3

Re: Help me! Scroll Y

check my remix of your  game "honors game"

Offline

 

#5 2011-12-24 13:05:04

NeilWest
Scratcher
Registered: 2010-01-06
Posts: 1000+

Re: Help me! Scroll Y

Right, here is a script that should be used in your platforms:

when flag clicked
forever
set y to ([scrollY] + ([360]*[0])

Change 0 to whichever height you want the platform to be at.

Offline

 

#6 2012-02-07 10:20:16

windingwater1
Scratcher
Registered: 2012-01-25
Posts: 2

Re: Help me! Scroll Y

I did that but why wont it scroll so that it looks like it was at the bottom? D:

Offline

 

Board footer