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

#1 2012-10-11 12:02:08

pinnipediator
Scratcher
Registered: 2012-02-10
Posts: 500+

How do you get gravity scrolling for everything in x+y?

I'm assuming that this is possible, but how do you create a scrolling effect, with gravity movement, where enemies also have a gravity movement effect and this is along x and y, and the gravity has gravity jumping and gravity movement (or icy floor movement as i call it) I've checked the scratch wiki and there isn't an article which deals with all of this. You don't have to, but i would like an answer with an explanation of how it works, i don't like just coping stuff mindlessly. Thanks in advance!  big_smile   smile

Offline

 

#2 2012-10-11 13:40:10

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: How do you get gravity scrolling for everything in x+y?

If you know how to do basic gravity and scrolling, you can combine the two quite easily.

Offline

 

#3 2012-10-12 11:12:35

pinnipediator
Scratcher
Registered: 2012-02-10
Posts: 500+

Re: How do you get gravity scrolling for everything in x+y?

But then to have it also for enemies, so they constantly gravity glide back and forwards? Also, last time i tried to combine gravity and scrolling, it completely failed. It would do the gravity, add the scrolling and it wouldn't move at all.

Offline

 

#4 2012-10-12 12:58:38

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: How do you get gravity scrolling for everything in x+y?

You want to do the scrolling first and then have the gravity affect the player x and y. And you do the same thing with the enemies. I'll make an example, one second.  smile

Offline

 

#5 2012-10-12 13:54:46

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: How do you get gravity scrolling for everything in x+y?

http://scratch.mit.edu/projects/Magnie/2831834 here's a project with the two tutorials combined.

Offline

 

#6 2012-10-13 02:31:13

pinnipediator
Scratcher
Registered: 2012-02-10
Posts: 500+

Re: How do you get gravity scrolling for everything in x+y?

Thank you! I will put that tutorial on my laptop and apply it into my own project!

Offline

 

Board footer