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

  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,263
    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