• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Scrolling objects

T

Tyler Logsdon

Guest
I am having a lot of trouble with this, and I don't think it should be nearly this hard to figure out... I have o_card, and when I scroll down on the mouse, its y-=65 and when I scroll up its y+=65. How can I get it to where if its y<30 that it will scroll down by 65 and if its y>1920 then it will scroll up by 65?(I have 30 o_card to deal with, and the 30th one needs to scroll ALL of them up by 65 when it touches y of 1920 and the 1st one needs to scroll ALL of them down when it touches y of less than 30) help is greatly appreciated as I am almost done with my project
 
C

CoderJoe

Guest
use if/else statements to first check the position and then update it
 
Top