Discuss Scratch

ZombieHappines
Scratcher
11 posts

Scrolling Engine

Im trying to make a scrolling engine that moves when you get to a certain point it moves without using sprites any help?

ZombieHappines
Scratcher
11 posts

Scrolling Engine

Im working on an underwater adventure game called Bathysphere Exploration. Also This is not what i had in mind i mean like a moving object that can move around in an area and then when it gets outside that area it scrolls until the object goes back into that area any help with this?

scubajerry
Scratcher
1000+ posts

Scrolling Engine

So I am still not sure what you are asking for. Take a look at this and tell me what else you need.

http://scratch.mit.edu/projects/12037013
bunnymustard
Scratcher
500+ posts

Scrolling Engine

When gf clicked
Forever{
If <<scrollx = (input)> or <<scrollx < (input)> and <scrollx > (input)>> then
Repeat until <scrollx < input>
Change by (input)
}
}

Last edited by bunnymustard (Aug. 28, 2013 10:44:06)

clubpenguin552222
Scratcher
100+ posts

Scrolling Engine

Script for your hero:
when [left arrow v] key pressed
change [scrollX v] by (0.5)

when [right arrow v] key pressed
change [scrollX v] by (-0.5)

Terrain:
when gf clicked
forever
set x to ((scrollX) + ((480) * (-.-)))
end
-.-= terrain number (starts from 0)

Last edited by clubpenguin552222 (Aug. 30, 2013 22:57:49)


<Scratch block share> <- Click on that
Projects i really love: CAA14's Engine center
ats-ll
Scratcher
75 posts

Scrolling Engine

bunnymustard wrote:

When gf clicked
Forever{
If <<scrollx = (input)> or <<scrollx < (input)> and <scrollx > (input)>> then
Repeat until <scrollx < input>
Change by (input)
}
}
do:
when gf clicked
forever
if <<scrollx = (input)> or <<scrollx < (input)> and <scrollx > (input)>> then
repeat until <scrollx < input>
change [scrollx v] by (1)

i am got in! Maki-Tak!
ErnieParke
Scratcher
1000+ posts

Scrolling Engine

ats-ll wrote:

bunnymustard wrote:

When gf clicked
Forever{
If <<(scrollx) = (input)> or <<(scrollx) < (input)> and <(scrollx) > (input)>>> then
Repeat until <(scrollx) < (input)>
Change by (input)
end
end
do:
when gf clicked
forever
if <<(scrollx) = (input)> or <<(scrollx) < (input)> and <(scrollx) > (input)>>> then
repeat until <(scrollx) < (input)>
change [scrollx v] by (1)
I fixed your scratchblocks above ^^.

With regards,

ErnieParke

cubby208
Scratcher
99 posts

Scrolling Engine

Mike0748
New to Scratch
10 posts

Scrolling Engine

If you want to make a scroller game with outt sprites then you could make the backround scroll but I don't know how fluid that would look
scubajerry
Scratcher
1000+ posts

Scrolling Engine

Mike0748 wrote:

If you want to make a scroller game with outt sprites then you could make the backround scroll but I don't know how fluid that would look
You mean like this?

http://scratch.mit.edu/projects/12101909/

Powered by DjangoBB