Hello
I have recently started making a scrolling game. I have been able to make the scrolling engine and terrain. Ive come across a problem though. I cant figure out how to have the terrain not scroll once the player has run up against a wall.
Also i wanted to the terrains y position change as the character jumps up and down, for example when your character jumps onto a block the block would scroll down as if your climbing up. That way i could have higher elevations.
Any help is appreciated!
Jinx98
P.s( My scrolling project is posted on Jinx98_test )
Offline
zammer990 wrote:
In your movement script have "if not touching colour" or "if not touching wall", the your changing of scrollx
If I do that, when the player is touching the terrain he cant move.
Last edited by Jinx98 (2012-07-10 12:43:34)
Offline
I have my walls have different colors so that the sprite reacts differently towards each wall. If you do it this way you can say that: If key (d) is pressed and If not touching (color) change scrollx by 5 same with the other key only with the other wall color.
Offline