Thread: chase and run

  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    2

    chase and run

    I need some help guys with making a chase and run program. lets say your making a game you got a ball that is running around the screen and one other ball starts following him if the collision between them occurs and the follower will speed up or down if the collider speeds up or down how can I make a simple program like this?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Announcements - C++ Programming

    - draw a ball
    - draw a ball that moves
    - ... that bounces off 1 wall
    - .... that bounces off 4 walls

    And so on.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jan 2012
    Posts
    2
    have you worked with game editor bud?

    Quote Originally Posted by Salem View Post
    Announcements - C++ Programming

    - draw a ball
    - draw a ball that moves
    - ... that bounces off 1 wall
    - .... that bounces off 4 walls

    And so on.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Oh well - looks like another drive-by shrub looking for free homework.

    Closed.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed