Dark Bit Factory &  Gravity

Dark Bit Factory & Gravity

  • September 09, 2010 *
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Pages: [1]   Go Down

Author Topic: Hang-man game.[BB2D]  (Read 263 times)

0 Members and 1 Guest are viewing this topic.

Røly

  • Amiga 1200
  • ****
  • Karma: 7
  • Offline Offline
  • Posts: 390
    • View Profile
Hang-man game.[BB2D]
« on: May 17, 2006 »
Original post from The Lost Coder, taken from the ezboard forum.

Hey I'm new here and was wondering could ya help me out with something. I'm trying to make a game but I don't know how to make the slash for the letter to appear under. Here is a function I have made but I don't know if it is good.

Repentance function
Code: [Select]
Function Repentance()

FadeScreen_1()

Quit=input("Do you wish to continue (y/n): ";)

If Quit="n" or Quit="N"

Continue=False

Else

Hell()

EndIf

End Function

Also I want to have a fading screen that words fade in and about a couple of millisecs later the words (do you wish to continue) will pop up. And will wait until the user press y or n then slowly fade the screen out. How do I accomplish this task or can one of ya do this part for me and I will put you in my credit slide

Quote from: Clyde Radcliffe


Hang-man game Hi there, I think your after a flashing cursor after the input message.

Take a look around the code archives and see if any of the fader routines in there are of any use to you.


Quote from: The Lost Coder

Okay I found one but I want to do it with a picture and I how do I make an accurate loading bar while showing my LOGO for the game.


Quote from: Thygrion

As for a blinker after the text, what you'll want to do is have a timer and a boolean (3 variables all together). You will have variable "time = millisecs()", "timer = [some number of milliseconds, preferably 100-200] ", and "flash", all integers. Now, instead of the dreaded Quit() command which makes things sloppy and unprofessional, write your own. This isn't hard. Basically you have a loop going until the enter/return key is hit. Inside the loop you will have code to add characters to a string variable. Also, with the timers and "flash" variables mentioned earlier, here's what you do. Inside the loop, just before the question being asked followed by the answer is displayed, you will check if millisecs() is greater than or equal to time + timer. If so, make time = millisecs() and flash = not flash. Then, when you're writing the question passed to the routine, you'll write a string with a space on the end if flash = 0, else if flash = 1 you'll have a slash on the end instead of a space. Apologies if that was a bit vague, it's very late :P

For the loading bar, I haven't come up with an efficient and smooth running one in Blitz.
« Last Edit: July 21, 2007 by Shockwave »
Logged
Pages: [1]   Go Up
 

 

B l a c k R a i n V.2 by C r i p

Page created in 0.113 seconds with 19 queries.