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

#1 2011-07-23 20:39:00

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Scroll x and Scroll Y!

Scroll x and y are so hard! Before you even say "check out scratch wiki" I did. I already did and it did not help. Here is my problem:

Okay so I am doing a broadcast which allows the player to move. So I am doing for the ground 0 sprite:

When I receive Hide
forever
go to: x : scrollx + 480*0 y : scrolly + 360*0

And it is not working! It goes to x 0 and y 0 axis when it receives hide.
Oh and in the beginning to prevent it from going to the 0 0 axis I put go to x: # y: # (I forgot the numbers).

Can anybody fix this problem?

Nevermind I got that down. But I have ANOTHER problem! How do you make those invisible borders that many people put go to the edge forever? I put them to a certain x and y position but can't get them to stay at the edge. How do you do that?

Wait I think I got the problem...
It should work, setting the x and y instead of go to: ....

Okay I got the two previous problems down. But I have another problem!! When I jump I put change scroll y by -6 wait 0.5 seconds change scroll y by 6. But I also want it to allow the character to be able to move in mid air until it reaches the ground again. But it sort of goes up freezes allows no movement, then goes back down and allows movement (right to left meaning).

Last edited by Thescratch3 (2011-07-23 21:27:37)


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#2 2011-07-23 21:37:18

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: Scroll x and Scroll Y!

Is the movement all in one script?

Offline

 

#3 2011-07-23 21:47:58

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Scroll x and Scroll Y!

laptop97 wrote:

Is the movement all in one script?

yea. but its okay I just give up it will NEVER EVER work, I just dont care anymore. Well I would be happy with some help


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#4 2011-07-23 21:51:55

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: Scroll x and Scroll Y!

If it waits .5 seconds the whole script freezes for .5 seconds. The left, right, up, down should be in seperate scripts. I think that will work.

Offline

 

#5 2011-07-23 21:56:26

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Scroll x and Scroll Y!

laptop97 wrote:

If it waits .5 seconds the whole script freezes for .5 seconds. The left, right, up, down should be in seperate scripts. I think that will work.

Oh.. thanks! I also need help with scrolling could you look at the project? I need help  sad
It is called Evergreen Adventures 1

Last edited by Thescratch3 (2011-07-23 21:58:56)


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#6 2011-07-23 21:59:35

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: Scroll x and Scroll Y!

Ok. What's the project name?

Offline

 

#7 2011-07-23 22:04:45

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: Scroll x and Scroll Y!

I can't find it, could you post a link?

Offline

 

#8 2011-07-24 00:13:18

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Scroll x and Scroll Y!

laptop97 wrote:

I can't find it, could you post a link?

It should be on now. Or just click my sig name and it is the first project.


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#9 2011-07-24 05:57:58

deathofdemons
Scratcher
Registered: 2011-04-21
Posts: 100+

Re: Scroll x and Scroll Y!

You need the turning on different scripts, up should be one script and down is another etc...


http://img11.imageshack.us/img11/9821/deathofdemons.gif

Offline

 

#10 2011-07-24 12:49:46

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Scroll x and Scroll Y!

Now I need help with scrolling. laptop97 sorry, I meant click my big sig (the one with my user name) and then go to see more (for friends) and find Scratch3testaccount and then it is the first project.


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#11 2011-07-24 12:55:34

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Scroll x and Scroll Y!

I'm not seeing the problem; I can move while it's in midair just fine.  hmm


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#12 2011-07-24 13:17:05

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Scroll x and Scroll Y!

Harakou wrote:

I'm not seeing the problem; I can move while it's in midair just fine.  hmm

Yes but not scrolling. It is okay I am closing down the scrolling one and just representing it as a fun plat former.


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#13 2011-07-24 13:43:04

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: Scroll x and Scroll Y!

I don't understand the problem. It moves, but you only have one scrolling platform.

Offline

 

#14 2011-07-24 13:46:13

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Scroll x and Scroll Y!

laptop97 wrote:

I don't understand the problem. It moves, but you only have one scrolling platform.

Go to the topic Jumping with a Sprite by me.


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

#15 2011-07-31 13:30:55

tomicool
Scratcher
Registered: 2009-01-11
Posts: 1000+

Re: Scroll x and Scroll Y!

If you want slope detection with Y velocity, it's best to use certain sprites that will act like sensors that use the broadcast block.


I might return for a little while.

Offline

 

#16 2011-07-31 13:39:38

Thescratch3
Scratcher
Registered: 2011-06-14
Posts: 1000+

Re: Scroll x and Scroll Y!

It's okay I rescripted it.


View my projects. Or face The scratch curse! (Get it?)
http://i56.tinypic.com/2cdk8hy.png

Offline

 

Board footer