CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2013
    Posts
    2

    Queue and need help

    I need to code a program where there will be "3 blocks" and a "Player" in a queue and as the player moves, the 3 blocks in the queue replaces as the player gets further away from the first block. like this: 1,2,3,1,2,3
    so as the player is further away from 1, it will replace the coordinates to be nearer to the player.
    How can i do that?

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Queue and need help

    Have you thought of using a Queue<>?

Tags for this Thread

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

Featured