The Daily Click ::. Forums ::. Klik Coding Help ::. 360 Degree Shooting in MMF2
 

Post Reply  Post Oekaki 
 

Posted By Message

Gema



Registered
  03/03/2007
Points
  2
3rd March, 2007 at 11:17:10 -

I am making a shmup game in mmf2
here is a example that i made in mmf1
http://www.youtube.com/watch?v=Lb_ZPVP9A50
at 00:24 .. the boss shoot many bullets in 360 degree
but i cannot make the 360 shooting to work in mmf2

I use
Set X position to X( Active ) + Cos( Angle( Active ) ) * Speed( Active )
Set Y position to Y( Active ) - Sin( Angle( Active ) ) * Speed( Active )
but the bullet only go in 24 direction if the speed is too low

Can anyone help me about this?

p.s. sorry for my poor english..english is not my first language

 
n/a

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
3rd March, 2007 at 11:46:58 -

* Always
- Set Alterable Value A to value A("Active") + Cos(Angle("Active" )) * Speed("Active")
- Set Alterable Value B to value B("Active") - Sin(Angle("Active" )) * Speed("Active")
- Active: Set X position to value A("Active")
- Active: Set Y position to value B("Active")

That should work.

Image Edited by the Author.

 
n/a

Gema



Registered
  03/03/2007
Points
  2
4th March, 2007 at 10:06:59 -

thx . it work now

 
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
5th March, 2007 at 04:02:10 -

I love that song, even though it is from Bubble Ghost.

 
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