Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Scrolling Engine
- 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?
- scubajerry
- Scratcher
1000+ posts
Scrolling Engine
http://wiki.scratch.mit.edu/wiki/Scrolling_(disambiguation)
So what are you trying to accomplish?
http://scratch.mit.edu/projects/11629464/
So what are you trying to accomplish?
http://scratch.mit.edu/projects/11629464/
- 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
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)
}
}
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:
Terrain:
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-.-= terrain number (starts from 0)
forever
set x to ((scrollX) + ((480) * (-.-)))
end
Last edited by clubpenguin552222 (Aug. 30, 2013 22:57:49)
- ats-ll
- Scratcher
75 posts
Scrolling Engine
do: When gf clicked
Forever{
If <<scrollx = (input)> or <<scrollx < (input)> and <scrollx > (input)>> then
Repeat until <scrollx < input>
Change by (input)
}
}
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
I fixed your scratchblocks above ^^.do: When gf clicked
Forever{
If <<(scrollx) = (input)> or <<(scrollx) < (input)> and <(scrollx) > (input)>>> then
Repeat until <(scrollx) < (input)>
Change by (input)
end
endwhen gf clicked
forever
if <<(scrollx) = (input)> or <<(scrollx) < (input)> and <(scrollx) > (input)>>> then
repeat until <(scrollx) < (input)>
change [scrollx v] by (1)
With regards,
ErnieParke
- cubby208
- Scratcher
99 posts
Scrolling Engine
I did a tutorial on how I do this here
http://scratch.mit.edu/projects/12012496/
http://scratch.mit.edu/projects/12012496/
- 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
You mean like this? 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
http://scratch.mit.edu/projects/12101909/
- Discussion Forums
- » Help with Scripts
- » Scrolling Engine