XNA - continuous obstacles accross the screen

This is a discussion on XNA - continuous obstacles accross the screen within the Game Programming forums, part of the General Programming Boards category; Hello, Im in the process of making a frogger style game, xna is brand new to be, ive a basic ...

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    42

    XNA - continuous obstacles accross the screen

    Hello,

    Im in the process of making a frogger style game, xna is brand new to be, ive a basic map with a movable character, i guess the next stage is to have obstacles / cars continuously streaming across the screen. but ive no idea where to begin.

    i know how to get a car across the screen once the game begins, but once it leaves the screen should i have it immediately return to the other side and loop, or have some sort of random number to wait and then repeat the process.

    any advice / bits of code / or ideas of code i should explore are more than welcome. thank you.

    Regards
    Ryan

  2. #2
    Registered User
    Join Date
    Mar 2010
    Posts
    9
    random is always fun to me :P

    i did this once with birds in the background
    i just picked which side it would come with a random 0 or 1 and a timer with a random interval and when the timer was greater then the random time would make the bird cross the screen. when it got past the other side just get another random 0 or 1 and another random interval and wait for that one to run out and so on

    this was pretty simple and was just back of a background but wouldnt think it'd be hard to do with other things but i know nothing of xna

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,586
    GameDev.net - all your game development needs is a good source for XNA related questions. This is a C++ Game programming forum and is not the best place to ask XNA questions.
    Last edited by VirtualAce; 11-03-2010 at 10:16 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Render text
    By Livijn in forum C++ Programming
    Replies: 6
    Last Post: 07-06-2007, 03:32 PM
  2. Feedback: Functional Specification Wording
    By Ragsdale85 in forum C++ Programming
    Replies: 0
    Last Post: 01-18-2006, 03:56 PM
  3. char copy
    By variable in forum C Programming
    Replies: 8
    Last Post: 02-06-2005, 09:18 PM
  4. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 02:41 AM
  5. Converting from Screen to World Coordinates
    By DavidP in forum Game Programming
    Replies: 9
    Last Post: 05-11-2004, 12:51 PM

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