|Hacker| Warga 1+
Jumlah posting : 106 Reputation : 35 Join date : 03.09.11 Age : 32 Lokasi : cilegon,jawa barat
| Subyek: Buat Form BerSalju Tue Sep 06, 2011 9:52 am | |
| Langsung Aja - Buat 1 Form Dengan Name Terserah Anda -Tambahkan 2 Timer 1 dan Timer2 di Form Anda Dengan Interval 500 -Tambahkan Lagi 1 Module dengan Name Module1 Isi Code Berikut Pada Module - Spoiler:
Option Explicit
Type xparticle x As Integer y As Integer oldX As Integer oldY As Integer iStopped As Integer End Type
Global Const kecepatan_salju = 400 Global Const ukuran_salju = 1 Global snow(0 To kecepatan_salju) As xparticle
Tambahkan Code Di Bawah Pada Form - Spoiler:
option Explicit Dim jalan As Boolean
Private Sub Form_Load() ScaleMode = vbPixels DrawWidth = ukuran_salju BackColor = vbBlack
Dim i As Integer
For i = 0 To kecepatan_salju snow(i).x = CInt(Int(ScaleWidth * Rnd)) snow(i).y = CInt(Int(ScaleHeight * Rnd)) Next
jalan = True Timer1.Enabled = True
Const sTEXT = "Karamecat" ForeColor = vbRed FontSize = 20 CurrentX = ScaleWidth / 2 - TextWidth(sTEXT) / 2 CurrentY = ScaleHeight / 2 - TextHeight(sTEXT) / 2 - 5 Print sTEXT
Const sText2 = "karameca.forumid.net" CurrentX = ScaleWidth / 2 - TextWidth(sText2) / 2 CurrentY = ScaleHeight / 2 + TextHeight(sText2) + 2 Print sText2
ForeColor = vbWhite End Sub
Sub DrawSnow() Dim i As Integer Dim newX As Integer Dim newY As Integer
Timer1.Enabled = False
Do While jalan For i = 0 To kecepatan_salju PSet (snow(i).oldX, snow(i).oldY), vbBlack PSet (snow(i).x, snow(i).y) Next i
For i = 0 To kecepatan_salju snow(i).oldX = snow(i).x snow(i).oldY = snow(i).y newX = snow(i).x + Int(2 * Rnd) newX = newX - Int(2 * Rnd)
newY = snow(i).y + 1
If Point(newX, newY) = vbBlack Then snow(i).y = newY snow(i).x = newX Else If snow(i).iStopped = 10 Then If Point(snow(i).x + 1, snow(i).y + 1) = vbBlack Then snow(i).x = snow(i).x + 1 snow(i).y = snow(i).y + 1 snow(i).iStopped = 0 ElseIf Me.Point(snow(i).x - 1, snow(i).y + 1) = vbBlack Then snow(i).x = snow(i).x - 1 snow(i).y = snow(i).y + 1 snow(i).iStopped = 0 Else NewParticle (i) End If Else snow(i).iStopped = snow(i).iStopped + 1 End If End If Next i DoEvents Loop End Sub
Sub NewParticle(i As Integer) snow(i).x = CInt(Int(ScaleWidth * Rnd)) snow(i).y = 0 snow(i).oldX = 0 snow(i).oldY = 0 snow(i).iStopped = 0 End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) jalan = False End Sub
Private Sub Timer1_Timer() DrawSnow End Sub
Kemudian coba di jalankan programnya Di mohon Untuk : • No Double Post • No Junk
Untuk lebih jelas Baca RULES agar tidak terkena WARN .! | |
|
chelbapolanda Warga 1+
Jumlah posting : 122 Reputation : 16 Join date : 04.09.11 Age : 28 Lokasi : Tembilahan, Riau
| Subyek: Re: Buat Form BerSalju Tue Sep 06, 2011 10:41 am | |
| | |
|
Tamu Tamu
| Subyek: Re: Buat Form BerSalju Tue Sep 06, 2011 10:54 am | |
| |
|
|Hacker| Warga 1+
Jumlah posting : 106 Reputation : 35 Join date : 03.09.11 Age : 32 Lokasi : cilegon,jawa barat
| Subyek: Re: Buat Form BerSalju Tue Sep 06, 2011 11:20 am | |
| | |
|
Anis Warga
Jumlah posting : 48 Reputation : 27 Join date : 03.09.11 Age : 28 Lokasi : Bandung
| Subyek: Re: Buat Form BerSalju Tue Sep 06, 2011 4:38 pm | |
| | |
|
|Hacker| Warga 1+
Jumlah posting : 106 Reputation : 35 Join date : 03.09.11 Age : 32 Lokasi : cilegon,jawa barat
| Subyek: Re: Buat Form BerSalju Tue Sep 06, 2011 5:49 pm | |
| | |
|
egysaputra Acces Denied
Jumlah posting : 121 Reputation : 25 Join date : 04.09.11 Lokasi : Depan Komputer
| Subyek: Re: Buat Form BerSalju Tue Sep 06, 2011 10:09 pm | |
| - |Hacker| wrote:
- Thank'S
- Anis wrote:
- ++++
- ahmad.never wrote:
- ++++++++++++++++++++++++
- chelbapolanda wrote:
- ++++++++++++++++++++
Kok Pada Junk Malah Momodnya Ikutin Baca Rules Donk Gan Jangan Hanya Junk Malu-Maluin Aja Untuk |Hacker| Jangan Double Posting Terus Gue Liat Ampir Di Setiap Thread Lo Double Post Terus | |
|
|Hacker| Warga 1+
Jumlah posting : 106 Reputation : 35 Join date : 03.09.11 Age : 32 Lokasi : cilegon,jawa barat
| Subyek: Re: Buat Form BerSalju Wed Sep 07, 2011 10:52 am | |
| | |
|
Sponsored content
| Subyek: Re: Buat Form BerSalju | |
| |
|