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

#1 2012-08-12 16:09:40

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Directional Scrolling

How do you make scrolling where the platforms revolve around the player?


http://i47.tinypic.com/2iaa73k.png

Offline

 

#2 2012-08-12 16:26:04

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Directional Scrolling

I don't understand what you mean. Like this?


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#3 2012-08-12 16:26:26

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Re: Directional Scrolling

Yes.


http://i47.tinypic.com/2iaa73k.png

Offline

 

#4 2012-08-13 14:21:39

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Re: Directional Scrolling

bump


http://i47.tinypic.com/2iaa73k.png

Offline

 

#5 2012-08-13 15:36:38

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Directional Scrolling

berberberber wrote:

bump

On your character, you have a normal rotation script, and have the big background sprite  rotate with it. To make it move you have to make it change it's x by the sin of it's direction * the amount of steps, and it's y by the cosine


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#6 2012-08-13 15:42:44

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Re: Directional Scrolling

No, the terrain turns, not the character.


http://i47.tinypic.com/2iaa73k.png

Offline

 

#7 2012-08-14 14:21:25

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Re: Directional Scrolling

b


http://i47.tinypic.com/2iaa73k.png

Offline

 

#8 2012-08-14 16:17:05

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: Directional Scrolling

berberberber wrote:

No, the terrain turns, not the character.

Ok, so instead of having a turning script on the character, just have one on the terrain


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#9 2012-08-14 16:40:44

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Re: Directional Scrolling

It's not that simple... I did try that...


http://i47.tinypic.com/2iaa73k.png

Offline

 

#10 2012-08-16 23:59:07

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Re: Directional Scrolling

bump


http://i47.tinypic.com/2iaa73k.png

Offline

 

Board footer