Battle system-VBForums
Results 1 to 13 of 13

Thread: Battle system

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2010
    Posts
    231

    Battle system

    Hi,people I am going to show you what I made in visual basic 6 at my own.
    This is a simple naruto battle system who you can see here:
    http://www.youtube.com/watch?v=FvBeSVxyuF4
    Say something about it or give me some idea or if you have a source of more good battle system than mine please link to it.
    And I have one question:
    How can I make my naruto sprite move to the enemy and then make the fire sprites.

  2. #2
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,572

    Re: Battle system

    Nice graphics....

    My suggestions:
    • Instead of the VB's commandboxes, you can try using some pictureboxes with some nice graphics for the button
    • Instead of VB's msgbox, you can try including a custom form for displaying messages with good graphics. Then display it as Modal form(like msgbox)
    • If you haven't included sound, you can include them

    ...

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India

    Skills: PHP, MySQL, jQuery, VB.Net, VB6, Photoshop...

  3. #3
    Lively Member
    Join Date
    Jul 2008
    Posts
    105

    Re: Battle system

    Nice Game! ^^

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Mar 2010
    Posts
    231

    Re: Battle system

    In the game I have sond for almost evrything - basic attack,razengan,chakra attack but the mine question is how to make the fooling think:
    I want when click to the basic attack the naruto sprites move to the enemy and then make the sprites movie with fire is there any sugestion about that.

  5. #5
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,572

    Re: Battle system

    I made a sample project with my idea....
    Attached Files Attached Files

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India

    Skills: PHP, MySQL, jQuery, VB.Net, VB6, Photoshop...

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Mar 2010
    Posts
    231

    Re: Battle system

    Yeap that help's me and thank you but how to make Picture1 when go to Picture2 to do it with a animation of the walking sprites.
    I have a 1 idea:
    In module:
    Code:
    Public num As Integer
    In the code
    Code:
    num = num + 1
    Picture1.Picture = imgwalking(num).Picture
    Tell is this a good idea if is can you make one demo with the moving.

  7. #7
    Super Moderator Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,335

    Re: Battle system

    Moved To Games Demo
    Please use [Code]your code goes in here[/Code] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    I dont answer coding questions via PM or EMail. Please post a thread in the appropriate forum section.

    Creating A Wizard In VB.NET
    Paging A Recordset
    What is wrong with using On Error Resume Next
    Good Article: Language Enhancements In Visual Basic 2010
    Upgrading VB6 Code To VB.NET
    Microsoft MVP 2005/2006/2007/2008/2009/2010/2011/2012/Defrocked

  8. #8
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,572

    Re: Battle system

    I haven't done anything regarding the animation before....

    But a thought:
    If you display an animated GIF (or anyother) animation of character ie. walking, you can simply move that control so that the animation and movement of that control will simulates a moving character....

    I will try to find a working sample...

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India

    Skills: PHP, MySQL, jQuery, VB.Net, VB6, Photoshop...

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Mar 2010
    Posts
    231

    Re: Battle system

    Quote Originally Posted by akhileshbc View Post
    I haven't done anything regarding the animation before....

    But a thought:
    If you display an animated GIF (or anyother) animation of character ie. walking, you can simply move that control so that the animation and movement of that control will simulates a moving character....

    I will try to find a working sample...
    Thanks in advance.
    I made evrything I need gust wait to see the sample demo of moving sprites to make it in the game.

  10. #10
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,572

    Re: Battle system

    Some improvements...

    If you want to display animated GIF pics, use this control: http://www.freevbcode.com/ShowCode.asp?ID=4045 ...
    Attached Files Attached Files

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India

    Skills: PHP, MySQL, jQuery, VB.Net, VB6, Photoshop...

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Mar 2010
    Posts
    231

    Re: Battle system

    Here is a video of the result:
    http://4storing.com/joityt/b80e71eb6...1739ad7a8.html

    And here is the code:
    Code:
    Option Explicit
    
    Private Sub Command1_Click()
      Timer1.Enabled = True '~~~> Enable the timer
      Timer1.Interval = 10  '~~~> Speed
    End Sub
    
    Private Sub Timer1_Timer()
      If Picture2.Left < (Picture1.Left - Picture1.Width - 150) Then
      Picture2.Left = Picture2.Left + 100
      Else
        '// when it reaches the enemy, attack
        Timer1.Interval = 100
        num = num + 1
        Picture2.Picture = imgfire2(num)
        If num = 22 Then
        Timer1.Enabled = False
        Picture2.Left = 360
        Picture2.Picture = Image2.Picture
        End If
      End If
    End Sub
    And one more think I want evry time i click Command1 the animation repeat again and again and again.
    But have problem when click one time evrythink perfect ot the second one don't work where can be the problem.
    P.P:To resolve this problem just add num = 0 after Timer1.Enabled = False.
    P.P2:akhileshbc If you can make the naruto sprite of the video move in the real way please post the code ofcourse use the above code please.
    Thanks to all who help.
    Last edited by mitko29; Mar 7th, 2010 at 10:25 AM.

  12. #12
    Member
    Join Date
    Jul 2012
    Posts
    52

    Re: Battle system

    great game.. keep it up..

  13. #13
    New Member
    Join Date
    Sep 2012
    Location
    Ahmedabad, Gujarat
    Posts
    2

    Re: Battle system

    Nice effort you have put. I really appreciate. But I think you have to more concentrate on graphics. It's really poor. So improve it otherwise it is good.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.