View Single Post
  #1 (permalink)  
Old 01-25-2008, 01:53 AM
quickfingers quickfingers is offline
Member
 
Join Date: Dec 2007
Posts: 10
quickfingers is on a distinguished road
Password System help
Ok I am working on a game which I would like to add a password System too .

Here is what my screen looks like

U= Up Button
D= Down Button
#= number
// Just a guide for the picture

U U U U

# # # #

D D D D

Now this is what I want it to do

I want to make it so when you click the first Up arrow only the first number goes up or if you click the down arrow only the first # goes down

and the same thing for the other 3 Images I made

This is what I have done

I have it so the buttons change the correct int
Add MouseClicked Since I used KeyPressed

This is what I need

All I need now is to check if the password is correct when they place in the password



This was what I was trying

//init
password[0]="1024";

//in run so it always checking
if(password[0]==""+num1+num2+num3+num4)
Reply With Quote
Sponsored Links