Turing - Help With Scrollbars
Author |
Message |
RyanNerd
|
Posted: Wed Jun 22, 2011 8:20 pm Post subject: Turing - Help With Scrollbars |
|
|
What is it you are trying to achieve?
Im trying to create a digging game where you dig down and collect ores.
What is the problem you are having?
I created a map for the game and the width is not much but the length of it goes far down since you're digging underground. The map doesn't load all the way because most of it is off the screen. My character can dig off the screen. I don't know if scroll bars is what im looking for. I just to follow my character when he starts going down. It is a 2d side view game. (like miner dig deep)
Describe what you have tried to solve this problem
I have tried to get the scroll bar working but with no success at all.
Please specify what version of Turing you are using
4.1 -1 |
|
|
|
|
|
Sponsor Sponsor
|
|
|
ProgrammingFun
|
Posted: Wed Jun 22, 2011 8:26 pm Post subject: RE:Turing - Help With Scrollbars |
|
|
When your character moves down, you need to scroll you screen up. This would not be done my a scroll bar (lame and bad way to do it), but you should detect when your character is off the screen (coordiates) and when it is, scroll your whole map up. |
|
|
|
|
|
Zren
|
Posted: Wed Jun 22, 2011 8:42 pm Post subject: RE:Turing - Help With Scrollbars |
|
|
Do you want the ability to view the whole map without actually moving your character, or should the scrolling follow the character?
In either case a scrollbar might not be the best idea. Think of having a variable for the camera which all drawn objects are translated by.
A scrollbar would require a little more math to be useful.
Edit: I really need to stop hitting reply an leaving it for half an hour. |
|
|
|
|
|
klutzedufus
|
Posted: Wed Jun 29, 2011 7:39 pm Post subject: RE:Turing - Help With Scrollbars |
|
|
Instead of making the player move downwards, keep the player in one position and make everything else scroll upwards when you try to move down. |
|
|
|
|
|
|
|