|
-
Who needs pants?
-
Senior Member
what you got there seems pretty cool as it is, post the fla and i can make some alterations
[m]
-
Who needs pants?
It is seriously coded basic. Its more movieclip then action script.
It was just an example but ill post the fla if you really want me too...
-
Who needs pants?
You see what it does right know is when i press space it choose's 3 random numbers between 0 and 9. Example number1 = 9 number2 = 5 number3 = 0 and it places each individual number in a text box. Labeled Hundreds Tens Ones and the textboxes are animated to give the wave effect.
so the numbers are totally random. But what i want is when you press space the health to be taken off is to be calculated correctly depending on a number of things, level of character the strength of character and so on.
So just say the Level of the character is 10 and the strength is 4.
Level = 10;
Strength = 4;
minusHealth = (level * stregnth)* random(5)+1;
Just say the computer chooses 5 for a random number. The health to be taken off will equal 200.
So 200 will be taken off. But thats not the problem the problem is breaking up the whole number into hundreds tens and ones.
eg
Hundreds = 2;
Tens = 0;
Ones = 0;
Ow and another thing just say 10 is the final number of health which the equation works out.
Hundreds = 0;
Tens = 1;
Ones = 0;
How do i make the hundreds colum blank ? instead of placing zero in the Hundreds colum.
Would i check to see wether the number chosen is less then 100?
Does anyone know how i can do this. Its probally really simple im just being really lazy atm.
Last edited by hooligan2001; 03-05-2003 at 11:27 PM.
-
Yes we can
hey there,knocked upa little example for you,check it out here:
http://www.geocities.com/ugur112/score.zip
you just have to type in a max 3 character long thingy..
-
Senior Member
that hoe tom beat me to it
-
Who needs pants?
Thanks heaps tom its exactly what i wanted Thnx to u too mbenney
-
Yes we can
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|