Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 scrolling functions in turing 3.1.1
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Antsabee




PostPosted: 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
Sponsor
sponsor
Tony




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
[Gandalf]




PostPosted: 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




PostPosted: 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




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
[Gandalf]




PostPosted: 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




PostPosted: 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




PostPosted: Tue Dec 27, 2005 2:02 pm   Post subject: (No subject)

well you could always just try and see how well that works out
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Sponsor
Sponsor
Sponsor
sponsor
Antsabee




PostPosted: 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




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 10 Posts ]
Jump to:   


Style:  
Search: