~Hakurei Shrine~ > Rika and Nitori's Garage Experiments
Question about bullets
<< < (2/2)
Fujiwara no Mokou:

--- Quote from: Iryan on June 21, 2009, 10:52:49 PM ---The command SetShotDirectionType(PLAYER); will make danmakufu measure the angle in angle towards the player rather than towards the right hand side of the playing field. Call it before firing the bullet and then fire the bullet at an angle of 0. Call  SetShotDirectionType(ABSOLUTE); afterwards to return the angle measuring back to normal.


The alternate method would be to use the atan2 command to get the angle between the position of the bullet and the position of the player.

--- End quote ---

Thank you.  That's exactly what I was looking for.
Drake:
Oops, I was combining atan and atan2, sorry.
Fujiwara no Mokou:
Uh, one more problem. I was trying to load a few other people's scripts in Danmakufu so I could see how it works, etc.  But every one that loads has the same error coming up.  Something about "lib\SHOT_REPLACE\shot_replace.dnh"

Can anybody help?
Helepolis:
Most people are using the Shot replace textures for their shots.

Download it here in this thread: http://www.shrinemaiden.org/forum/index.php?topic=345.msg9261#msg9261

And place it in the root of your Danmakufu. You should be able to run majority of the scripts.
Fujiwara no Mokou:
Thanks alot Helepolis, you were right.
Navigation
Message Index
Previous page

Go to full version