Results 1 to 2 of 2

Thread: form object that controls itself??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    180

    form object that controls itself??

    I'm would like to build a simple modeling analysis tool, but for this question I'll put it in simple terms.

    Imagine you have two round balls on the screen. I would like to find a way to have each ball control itself. Where if it hits a wall, then it bounces back accordingly.

    I was thinking if there is a way I can create a single routine for a single ball, that monitors it's self in some way (sort of a AI). Then I could spawn more of these balls, and they would just keep track of them selves, rather than having a routine that cycles through all on screen balls updating each on independently.

    Sorry if I'm not explaining myself correctly, I hope someone might know what I'm talking about.

  2. #2
    Fanatic Member Clanguage's Avatar
    Join Date
    Jan 2008
    Location
    North Carolina
    Posts
    659

    Re: form object that controls itself??

    Hey Motoman
    check this thread out.
    http://www.vbforums.com/showthread.p...=bouncing+ball
    CLanguage;
    IF Post = HelpFull Then
    RateMe
    Else
    Say("Shut UP")
    End If
    DotNet rocks
    VB 6, VB.Net 2003, 2005, 2008, 2010, SQL 2005, WM 5.0,ahem ?OpenRoad?

Posting Permissions

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



Click Here to Expand Forum to Full Width