chase and run

This is a discussion on chase and run within the C++ Programming forums, part of the General Programming Boards category; I need some help guys with making a chase and run program. lets say your making a game you got ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,484
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21