The 'delay()' function and its alternatives...

This is a discussion on The 'delay()' function and its alternatives... within the Game Programming forums, part of the General Programming Boards category; Hi, I believe that the delay() function is a good one to use for game introductions. What header file should ...

  1. #1
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020

    The 'delay()' function and its alternatives...

    Hi,

    I believe that the delay() function is a good one to use for game introductions. What header file should i include to use it?

    Also, is there any alternatives to doing a 'typing effect' ?

    Thnx

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    Posts
    2,267
    unfortunatly delay() is not a universal function,

    use (sleep()/_sleep()/__sleep()) in (stdlib.h/unistd.h) instead, or make a timer as described in the 'Getting the FPS (Frames Per Second)' thread...
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

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