Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Random Moving/Attacking
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
KeyBladeMaster




PostPosted: 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
Sponsor
sponsor
HeavenAgain




PostPosted: 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. Rolling Eyes
Rand.Int or something is what you are looking for, probably
KeyBladeMaster




PostPosted: 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




PostPosted: 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




PostPosted: Fri Nov 30, 2007 4:42 pm   Post subject: RE:Random Moving/Attacking

not at alll
Sad
im not that good in turing...
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: