So I'm making a project with a bunch of levels. I understand scroll X and I have a scrolling engine I like, I just don't know how to do scroll y or how to do scroll X and Y at the same time. Please try to explain this in the most basic way you can I'm pretty new to programming so I don't know much about that sort of computery stuff
. If Anyone can give me a script for a X and Y scrolling leveled script that I can mess with, or find a project that uses X and Y scrolling, that would be a big help! I can't wait for your feedback
!

...ya, I'm weird... REAL weird...Offline
tree-hugger wrote:
So I'm making a project with a bunch of levels. I understand scroll X and I have a scrolling engine I like, I just don't know how to do scroll y or how to do scroll X and Y at the same time. Please try to explain this in the most basic way you can I'm pretty new to programming so I don't know much about that sort of computery stuff
. If Anyone can give me a script for a X and Y scrolling leveled script that I can mess with, or find a project that uses X and Y scrolling, that would be a big help! I can't wait for your feedback
!
when gf clicked
forever
if <key [up arrow v] pressed>
change (scroll y) by [-2]
end
if <key [down arrow v] pressed>
change (scroll y) by [2]
end
if <key [left arrow v] pressed>
change (scroll x) by [2]
end
if <key [right arrow v] pressed>
change (scroll x) by [-2]
end
for terain
when gf clicked
forever
go to x:<(x scroll) + [480]> y:<(y scroll) + [something]>
Last edited by pizza22 (2012-08-31 14:25:23)
Offline
when I receive [JOKERVILLE v] set (scrolly v) to [0] set (scrollx v) to [0] show forever go to x: <(scrollx) +<[480]*[0]>> y:<(scrolly) +<[360]*[1]>> // change * by1 every time you want it to go further North when (w v) key pressed change (scrolly v) by (7) when (w v) key pressed change (scrolly v) by (-7)Hope this helps
,if you need an physical example simply ask and I'll upload an example quickly
Offline
^^^
neither of you are correct
when gf clicked set [x v] to [0] set [y v] to [0] forever if <key [up arrow v] pressed?> change [y v] by (-5) end if <key [down arrow v] pressed?> change [y v] by (5) end if <key [left arrow v] pressed?> change [x v] by (5) end if <key [right arrow v] pressed?> change [x v] by (-5) end
when gf clicked forever go to x:((x) + ((xpos) * (480))) y:((y) + ((ypos) * (360)))xpos and ypos refer to a grid. so if xpos = 0 and ypos = 0 are the center of the map, the map to the right would be xpos = 1, ypos = 0, and the map above would be xpos=0, ypos=1
Last edited by Wes64 (2012-08-31 14:23:48)
Offline
pizza22 wrote:
tree-hugger wrote:
So I'm making a project with a bunch of levels. I understand scroll X and I have a scrolling engine I like, I just don't know how to do scroll y or how to do scroll X and Y at the same time. Please try to explain this in the most basic way you can I'm pretty new to programming so I don't know much about that sort of computery stuff
. If Anyone can give me a script for a X and Y scrolling leveled script that I can mess with, or find a project that uses X and Y scrolling, that would be a big help! I can't wait for your feedback
!
when gf clicked forever if <key [up arrow v] pressed> change y by [-2] end if <key [down arrow v] pressed> change y by [2] end if <key [left arrow v] pressed> change x by [2] end if <key [right arrow v] pressed> change x by [-2] endfor terainwhen gf clicked forever go to x:<(x scroll) + [480]> y:<(y scroll) + [something]>
oh..sorry ( I meant to change varible instead of position
Offline
Zarule6 wrote:
Wes64 wrote:
^^^
neither of you are correct^_^ actually I'm implementing the code I posted into my RPG and it's working perfectly at every level so far
![]()
yours wasnt incorrect, just incomplete. there were no x-scroll options
Offline