The Daily Click ::. Forums ::. General Chat ::. How to make characters shot random things at ypu
 

Post Reply  Post Oekaki 
 

Posted By Message

Igor23



Registered
  02/12/2013 06:06:49
Points
  344
12th July, 2014 at 12/07/2014 01:36:11 -

Hello, this is for multimedia fusion to users I was wondering how would you randomize what characters shout at you or make what they do random?

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
12th July, 2014 at 12/07/2014 22:26:47 -

Well first of all you would have to make the enemy movement. If you've made it yourself you'll get better control.
Then to make it act randomly you need to ask MMF2 for a random number. with say...

set value to Random (10)

which would choose a number from 0 to 9, or

then you can make an event starting with the qualifier

value = 0? do this
value = 1? do something else
value = 2? do a third thing

etc

the value can be anything really, a global value? or an alterable value from an active object or even a counter.

 
.

A Yip



Registered
  01/09/2009
Points
  6
26th July, 2014 at 26/07/2014 16:23:26 -

It depends what you want them to shout.

 
n/a

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2722
9th August, 2014 at 09/08/2014 16:41:08 -

If you want the character to shoot in a random direction, just select them all and it will shoot in one of those directions at random.

Otherwise use the trick with random and comparing values for what to shoot (or in which direction, but the direction thingy I mentioned above is easier for that).

 
Image jenswa.neocities.org
   

Post Reply



 



Advertisement

Worth A Click