Random Moving/Attacking
Author |
Message |
KeyBladeMaster
|
Posted: Wed Nov 21, 2007 9:15 pm Post subject: Random Moving/Attacking |
|
|
Alright, I am Making A Kingdom Hearts game in my Computer Engineering.
Basicly how its going to be is you are sora.
And you will be fight the Shadow heartless, which will be the only common enemy,
then after an amount of those are defeated the boss will pop up.
That kinda has nothing to do with what i am asking right now but w.e
ANYWAY
I wanted to know how to make the common enemy and boss fight and walk towards you automaticly but randomly.... |
|
|
|
|
|
Sponsor Sponsor
|
|
|
HeavenAgain
|
Posted: Wed Nov 21, 2007 9:29 pm Post subject: RE:Random Moving/Attacking |
|
|
like you said, random is the key word, i have no idea how you game is gonna look like. so just give random value to different behaviour, and just keep on mind what value does what.
Rand.Int or something is what you are looking for, probably |
|
|
|
|
|
KeyBladeMaster
|
Posted: Wed Nov 21, 2007 10:11 pm Post subject: RE:Random Moving/Attacking |
|
|
i had a feeling it would be like that its just all i hv used rand.int with is with number not like pictures. |
|
|
|
|
|
HeavenAgain
|
Posted: Wed Nov 21, 2007 10:36 pm Post subject: RE:Random Moving/Attacking |
|
|
well, you can picture numbers as a "direction" to the pictures, say, if random number you got is 1, you move left, and draw the picture you have to draw, and check the random number again, if its something else, you do something else, you get what i mean? o_o |
|
|
|
|
|
KeyBladeMaster
|
Posted: Fri Nov 30, 2007 4:42 pm Post subject: RE:Random Moving/Attacking |
|
|
not at alll
im not that good in turing... |
|
|
|
|
|
|
|