The Daily Click ::. Forums ::. Klik Coding Help ::. Random Shooting in KNP
 

Post Reply  Post Oekaki 
 

Posted By Message

Mr Q



Registered
  06/11/2004
Points
  89
23rd January, 2005 at 17:53:04 -

in my game i want a random UFO to shoot and a random time any help?

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
23rd January, 2005 at 18:12:48 -

I'm not sure if KNP has the random function, but I assume so, all you need is one counter and multiple enemies:

* Always set counter's value to Random(20)

* If counter.val = 1 >
+ Pick a UFO at random > Shoot an object.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
   

Post Reply



 



Advertisement

Worth A Click