Author |
Message |
Antsabee
|
Posted: Sun Dec 25, 2005 5:16 pm Post subject: scrolling functions in turing 3.1.1 |
|
|
does anyone know how I can get clear transitions between scrolls? (eg. final fantasy 2) |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Tony
|
Posted: Sun Dec 25, 2005 7:15 pm Post subject: (No subject) |
|
|
Since there's no View.Update in Turing 3.1, you'd have to figure out how to draw your pictures as fast as possible, and move them as little as possible. That probably means you'd need to start sheding some detail for the scrolls. Keep it basic, and don't redraw what stays in place. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
[Gandalf]
|
Posted: Sun Dec 25, 2005 9:25 pm Post subject: (No subject) |
|
|
Or, you know, do things the more common way, xoring the screen to create a smoother animation. It comes in handy to know when you program in other languages which don't include a View.Update()-like function. |
|
|
|
|
|
chrispminis
|
Posted: Sun Dec 25, 2005 9:46 pm Post subject: (No subject) |
|
|
I've seen this come up a lot, what exactly is XORing anyways? What does it do and what does XOR stand for? |
|
|
|
|
|
Tony
|
Posted: Mon Dec 26, 2005 2:20 am Post subject: (No subject) |
|
|
well XOR is a logical operator - exclusive or
xor returns true if one, but not both items are true.
false xor false = false
false xor true = true
true xor false = true
true xor true = false
you could do some neat logical tricks with the operator. Read the link that [Gandalf] has posted.
Though I don't think this is particularly benificial to the problem. The way I understand is that XOR sord of allows you to draw one picture on top of another, and then undo itself. In scrolling the entire screen is moving, so that's a different problem. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
[Gandalf]
|
Posted: Mon Dec 26, 2005 2:52 am Post subject: (No subject) |
|
|
Ah I see. If that is the case then I indeed misunderstood. For example, if you had a ball bouncing around the screen picXor would help, but if the whole screen is changing you have another problem.
And chrispminis, aside from google, wikipedia is a useful resource for a question on basically anything. |
|
|
|
|
|
Antsabee
|
Posted: Tue Dec 27, 2005 1:42 pm Post subject: (No subject) |
|
|
hmm what if I took a screenshot and then moved that around the screen rather then redrawing everything? |
|
|
|
|
|
Tony
|
Posted: Tue Dec 27, 2005 2:02 pm Post subject: (No subject) |
|
|
well you could always just try and see how well that works out |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Sponsor Sponsor
|
|
|
Antsabee
|
Posted: Sun Jan 01, 2006 12:58 pm Post subject: (No subject) |
|
|
allright well I found another problem, screenshots would work but I need to draw the pixels on one side of it (hard to explain). I'm not sure how to keep track of the screen position so it knows where to put the new pictures. |
|
|
|
|
|
Albrecd
|
Posted: Sun Jan 01, 2006 3:35 pm Post subject: (No subject) |
|
|
You just use the same variables that you are using to move the screenshot to draw the other pictures as well. |
|
|
|
|
|
|