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

Username:   Password: 
 RegisterRegister   
 Making Credits
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
BigBear




PostPosted: Fri Feb 01, 2008 8:45 pm   Post subject: Making Credits

I am wondering if someone can help me get started making credits. I was thinking makeing text move by changing the variable y then when y = maxy then y:=o and draw another group of words that move by the variable y. Any Ideas
Sponsor
Sponsor
Sponsor
sponsor
HeavenAgain




PostPosted: Fri Feb 01, 2008 9:03 pm   Post subject: RE:Making Credits

draw them all on the screen where you can see them first, then add like 1000 to y cord, and now do a for-loop minus the y cord, and voola Very Happy simple and stupid
syntax_error




PostPosted: Fri Feb 01, 2008 9:19 pm   Post subject: Re: Making Credits

even better a cheap trick write out your credits on paint or something make it fancy as you want save it as a jpeg
then jsut move the picture up nad down the screen soo much less coding
and i think would look better?
ericfourfour




PostPosted: Fri Feb 01, 2008 10:16 pm   Post subject: Re: Making Credits

The best way would be to make a procedure that takes one line, as a string and scrolls it all the way down the screen. It will make programming your credits much easier.

The procedure would look sort-of like this:
Turing:
proc scroll (line : string)
    % Scroll line string down the screen.
end scroll


Then all you would have to do is a series of calls for your credits:
Turing:
scroll ("Programmer - BigBear")
scroll ("some other task - person's name")


You will also have to find where to place the text so it is centre. Just some basic math (mean/average).

If you make it that simple, you can easily implement loading the credits from a file as well.
BigBear




PostPosted: Sun Feb 10, 2008 12:49 pm   Post subject: Re: Making Credits

They were all great suggestions almost as if you guys had done it before. Wink

I ended up just making it in paint but had to make multiple txt boxes then changed to to white writing and had to either change each pixel white. so I ended up doing some simple code in turing to Font.Draw my text then took a screen shot and pasted in into another paint cut the text out and pasted it into my credits bitmap.
Turing:

setscreen ("graphics:max;max")
%var font : int := Font.New ("Arial:35:Bold") % Bold for Titles
var font : int := Font.New ("Arial:35:italic") %italic for Names lol
drawfillbox (0, 0, maxx, maxy, black)
Font.Draw ("Cody Scott", maxx div 2, maxy div 2, font, white)

I wondering why my teacher wanted credits. This is not my Ego. lol

Anyways here is my finished product thanks alot.



credits.JPG
 Description:
Bitmap of credits used in littles Program
 Filesize:  233.42 KB
 Viewed:  90 Time(s)

credits.JPG



Unnamed.t
 Description:
Code for credits taken from my Game

Download
 Filename:  Unnamed.t
 Filesize:  273 Bytes
 Downloaded:  88 Time(s)

octopi




PostPosted: Sun Feb 10, 2008 9:49 pm   Post subject: Re: Making Credits

I think you mean Mozilla, not Moxilla
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  [ 6 Posts ]
Jump to:   


Style:  
Search: