Results 1 to 2 of 2

Thread: Bmp Help

  1. #1
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Bmp Help

    Gosh this is hard to explain.
    I want it so that whatever is string1 is withdrawn. It relies on bmp's so what procedure or function would i use make the active bmp whatever the string1 is? As you can see its got to do with food so i need several different bmps.


    SCAR Code:
    procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name := '';
      Players[0].Pass := '';
      Players[0].Nick := ''; {3-4 letters of your name}
      Players[0].Skill := ''; {Fight Mode}
      Players[0].Active := True; {Use player?}
      Players[0].String1 := 'Lobster'; {What food}
    end;

  2. #2
    Join Date
    Jun 2006
    Location
    New Zealand
    Posts
    285
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Use a case?
    SCAR Code:
    case Players[CurrentPlayer].String1 of
      'Lobster': begin
                   bmpLobster := BitmapFromString(13, 10, 'z78DAdegqaegvd');
                   if(findbitmap(bmpLobster, x, y)) then
                   ...
                 end;
      'Cake':  begin
                 bmpCake := BitmapFromString(13, 10, 'z78DAdegqaegvd');
                 if(findbitmap(bmpCake, x, y)) then
                 ...
               end;
    end;
    Something like that should work.
    Huehuehuehuehue

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •