Hi i'm making a scroller but instead of going left and right(x) it goes up and down(y). The only problem is when my character jumps, and lands on the platform, he dosen't land just goes back to the main platform does anyone know the script for land on a platform after you jump
Offline
I've never tried Y scrollign with platforms.... I would have to assume that he uses basic sensing and also has to change the y scrolling
Offline
Do it just like how you would do horizontal scrolling.
Set Y position to ScrollY + (360 * 0) for the first one.
ScrollY + (360 * 1) for the second.
You use 360 because that's the height of the screen.
Use block sensors and set the ghost effect to 100 for both of them.
If character is touching sensor1 or sensor2 use regular velocity script. If not (touching sensor1 or sensor2) change scrollY by VelocityY.
Offline
Zelda123 wrote:
Do it just like how you would do horizontal scrolling.
Set Y position to ScrollY + (360 * 0) for the first one.
ScrollY + (360 * 1) for the second.
You use 360 because that's the height of the screen.
Use block sensors and set the ghost effect to 100 for both of them.
If character is touching sensor1 or sensor2 use regular velocity script. If not (touching sensor1 or sensor2) change scrollY by VelocityY.
sorry i do not understand the last paragraph at all...
Offline
joeisawesome wrote:
Zelda123 wrote:
Do it just like how you would do horizontal scrolling.
Set Y position to ScrollY + (360 * 0) for the first one.
ScrollY + (360 * 1) for the second.
You use 360 because that's the height of the screen.
Use block sensors and set the ghost effect to 100 for both of them.
If character is touching sensor1 or sensor2 use regular velocity script. If not (touching sensor1 or sensor2) change scrollY by VelocityY.sorry i do not understand the last paragraph at all...
Make 2 sprites with width of the full screen( 360) and about a height of 1/3 of the screen.
Take a look at this project; it uses horizontal yellow sensors. Do the same except vertically.
http://scratch.mit.edu/projects/Zelda123/185346
Offline
Zelda123 wrote:
joeisawesome wrote:
Zelda123 wrote:
Do it just like how you would do horizontal scrolling.
Set Y position to ScrollY + (360 * 0) for the first one.
ScrollY + (360 * 1) for the second.
You use 360 because that's the height of the screen.
Use block sensors and set the ghost effect to 100 for both of them.
If character is touching sensor1 or sensor2 use regular velocity script. If not (touching sensor1 or sensor2) change scrollY by VelocityY.sorry i do not understand the last paragraph at all...
Make 2 sprites with width of the full screen( 360) and about a height of 1/3 of the screen.
Take a look at this project; it uses horizontal yellow sensors. Do the same except vertically.
http://scratch.mit.edu/projects/Zelda123/185346
I'm sorry you're going x i need y but on the other hand nice game!
Offline