Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Hard Coding credits to a Label


RyokuHasu
 Share

Recommended Posts

Instead of Writing your credits in the image editor and loading it into your game, why not just make a lable so its easy to edit?

One thing you have to know is that "vbCrLf" stands for "New Line"

Creating a new line is the most important part of credits, and you can't tell me its not, it looks like a mess if you dont.

**CLIENT**

**frmMenu**

Move the other windows out of the way until you fin your credits window.

make a Lable the general size you want (so it dosnt cover to much of your graphics)

Name it "lblCredits"

dont forget to move your other windows back in place.

now open up the code veiw for frmMenu and find "Private Sub Form_Load()"

under
```
Dim tmpTxt As String, tmpArray() As String, i As Long

```
add

```
lblCredits.Caption =

```

**Writing the credits**

next to
```
lblCredits.Caption =

```
Write every line of your credits inside of " " with & vbCrLf & written in between each one.

(& vbCrLf & vbCrLf & for double spaced)

Your credits MUST all be on the same line In the code, but it will add new lines on the label

HOA credits example
```
lblCredits.Caption = "Hero Of Athea Online - Credits " & vbCrLf & vbCrLf & "Creator and developer:" & vbCrLf & "Ryoku Hasu" & vbCrLf & vbCrLf & "Programming:" & vbCrLf & "Ryoku Hasu" & vbCrLf & "Alatar (Quest System)" & vbCrLf & "crzyone9584 (friend system)" & vbCrLf & "Lightning (pet engine outline)" & vbCrLf & vbCrLf & "Graphical design:" & vbCrLf & "Grimnnak" & vbCrLf & vbCrLf & "Story:" & vbCrLf & "Ryoku Hasu"

```   
The outcome:

![](http://www.mediafire.com/imgbnc.php/8a55eb19d0aa463a5e8a9e01c8357919697cb93515e24ad052f326de75b36ff86g.jpg)
Link to comment
Share on other sites

Eh,

> : : : They look the same to me. Is there any specific difference?
> : : :
> : : vbCrLf is just a "hard-coded" Carriage Return and Line Feed.
> : :
> : : vbNewLine is platform specific and will contain whatever the appropriate codes are to generate a new line.
> : :
> :
> : Here are the facts:
> :
> : Carriage return justs puts the cursor position down one line without moving the cursor back to the far left.
> :
> : Linefeed moves the cursor back to the beginning of the line.
> :
> : vbCrlf just combines the two and makes things simpler for beginners.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...