The Daily Click ::. Forums ::. Non-Klik Coding Help ::. homing missles
 

Post Reply  Post Oekaki 
 

Posted By Message

SquishyGecko840



Registered
  28/11/2008
Points
  38
16th December, 2008 at 01:23:27 -

me and my friend are making a side scrolling shooting game similar to megaman

we where thinking of different back mounted weapons and we where wondering how we would get a shot that explodes into several homing missiles

 
oh ya

http://www.afrankwillis.com/gallery/pet%20moose.jpg

Jon Lambert

Administrator
Vaporware Master

Registered
  19/12/2004
Points
  8235

VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
16th December, 2008 at 01:55:00 -

What you could do is have the active object shoot a missle object, and do this:
Press Fire 1

-"Player" shoot "Missle" at speed 35

"Missle" is in play area
-Add to alterable value A 1

Alterable value A of "Missle > or = 30
Only one action when event loops
-Create "Mini Missle" at (0,-5) from "Missle"
-Set direction to "Missle"
-Create "Mini Missle" at (0,0) from "Missle"
-Set direction to "Missle"
-Create "Mini Missle" at (0,5) from "Missle"
-Set direction to "Missle"
-Destroy "Missle"

"Mini Missle" is in play area
-Look in direction of "Group.Enemy"

And the Mini Missle would be a Bouncing Ball movement that is moving at start, so when it is created it goes in the direction the original missle was going.


 
Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364
   

Post Reply



 



Advertisement

Worth A Click